Difference between revisions of "Manual:DIL Manual/self"
Jump to navigation
Jump to search
(XML import) |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | <span id="self"></span> | ||
| + | 'self' | ||
| + | This variable is a unitptr to the unit owning the DIL program. | ||
| + | For C++ people, this is like the 'this' pointer. | ||
| + | For example, if Mary has a program, then self.title equals | ||
| + | "Mary the Lumberjack wife" | ||
| − | + | ---~---~---~---~---~---~---~---~--- | |
<span id="self"></span> | <span id="self"></span> | ||
'self' | 'self' | ||
| Line 7: | Line 13: | ||
For example, if Mary has a program, then self.title equals | For example, if Mary has a program, then self.title equals | ||
"Mary the Lumberjack wife" | "Mary the Lumberjack wife" | ||
| + | |||
| + | ---~---~---~---~---~---~---~---~--- | ||
Latest revision as of 22:36, 4 December 2025
'self' This variable is a unitptr to the unit owning the DIL program. For C++ people, this is like the 'this' pointer. For example, if Mary has a program, then self.title equals "Mary the Lumberjack wife"
---~---~---~---~---~---~---~---~---
'self' This variable is a unitptr to the unit owning the DIL program. For C++ people, this is like the 'this' pointer. For example, if Mary has a program, then self.title equals "Mary the Lumberjack wife"
---~---~---~---~---~---~---~---~---