Pointers and references: Difference between revisions
Content added Content deleted
Line 1,681: | Line 1,681: | ||
]</lang> |
]</lang> |
||
=={{header|VBA}}== |
|||
Formally VBA does not have pointers or references. Objects are created with the "New" keyword, and assignments require the keyword "Set". Getting the memory address of a pointer is not documented in VBA. |
|||
<lang vb>Dim samplevariable as New Object |
|||
Dim anothervariable as Object |
|||
Set anothervariable = sameplevariable</lang> |
|||
=={{header|zkl}}== |
=={{header|zkl}}== |
||
Pointers don't exist and neither do conventional references but mutable containers can act like references: List, Ref (strong reference), GarbageMan.WeakRef (weak reference) and others. |
Pointers don't exist and neither do conventional references but mutable containers can act like references: List, Ref (strong reference), GarbageMan.WeakRef (weak reference) and others. |