fb:porticula NoPaste
ByRef Var manuelles Löschen
Uploader: | MOD |
Datum/Zeit: | 11.10.2015 22:54:18 |
Type Dummy
Declare Constructor
Declare Destructor
As Integer value
End Type
Constructor Dummy
Print "ctor"
End Constructor
Destructor Dummy
Print "dtor"
End Destructor
Function foo() ByRef As Dummy
Dim As Dummy Ptr f = New Dummy
f->value = 5
Return *f
End Function
Dim ByRef As Dummy bar = foo()
Print bar.value
Delete @bar '<- wichtig!
Sub module_dtor Destructor
Print "module_dtor"
Sleep
End Sub