Difference between revisions of "Manual:DIL Manual/self"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(XML import)
 
(2 intermediate revisions 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'

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"
---~---~---~---~---~---~---~---~---