| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Call a constructor with no arguments
Source position: objects.pp line 583
| function CallVoidConstructor( | 
| Ctor: CodePointer; | 
| Obj: pointer; | 
| VMT: pointer | 
| ):pointer; | 
CallVoidConstructor calls the constructor of an object. Ctor is the address of the constructor, Obj is a pointer to the instance. If it is Nil, then a new instance is allocated. VMT is a pointer to the object's VMT. The return value is a pointer to the instance.
Note that this can only be used on constructors that require no arguments.
If the constructor expects arguments, the stack may be corrupted.
| 
 | Call a constructor with a pointer argument. | |
| 
 | Call a method with a single pointer argument | |
| 
 | Call a local nested procedure. | |
| 
 | Call a local nested function with a pointer argument | |
| 
 | Call a local procedure of a method | |
| 
 | Call a local procedure of a method with a pointer argument |