User Tools

Site Tools


script:walkthrough:functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
script:walkthrough:functions [2022-09-27 07:21]
skyjake
script:walkthrough:functions [2022-09-27 07:24] (current)
skyjake
Line 33: Line 33:
 ===== Records as arguments ===== ===== Records as arguments =====
  
-Records are passed by (non-ownedreference in arguments.+Records are passed by non-owned reference in arguments.
  
   record myrec   record myrec
Line 62: Line 62:
 ===== Records as return value ===== ===== Records as return value =====
  
-Records are passed by reference in the return value. This means that if a record is created as a local variable, it will be deleted ​regardless ​(!).+Records are passed by non-owned ​reference in the return value. This means that if a record is created as a local variable, it will be deleted ​even when it used as a return value (!).
  
   def func4()   def func4()
script/walkthrough/functions.txt ยท Last modified: 2022-09-27 07:24 by skyjake