Jump AfterConstruction method

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Jump AfterConstruction method

Joao Morais


I have a constructor that, is some circumstances, need to return nil (is
part of an OPF framework), after calling the inherited create method.
This piece of code works fine with Delphi:

   Self := nil;
     MOV     [EBP - $09], EAX // Avoid calling AfterConstruction
     POP     dword ptr fs:[$00000000]
     ADD     ESP, $0C

What should I do for a FPC platform independent code?

Joao Morais
fpc-pascal maillist  -  [hidden email]