How to return the current object

Nick Sabalausky a at a.a
Tue Sep 27 01:18:13 PDT 2011


"alex" <ask at nospam.com> wrote in message 
news:j5onj9$2f85$1 at digitalmars.com...
> Is there a way to return the current object in any part of the code, even 
> from void main? (which is still a type void). I have tried the this thing 
> but it doesn't work

Main isn't a member of any object, so there is no "this" inside main.




More information about the Digitalmars-d-learn mailing list