Prof A Olowofoyeku (The African Chief) wrote:
I suspect that what he is referring to is the Delphi class syntax whereby a constructor returns a pointer to the object - e.g., myobj := tMyObj.MyConstructor;
So perhaps whatever magic is responsible for being able to use a constructor as a boolean function may possibly be also used for enabling the use of constructors to return a pointer to the object. I would also find such a thing useful. It would involve some implicit things - e.g.,
[...]
I am not sure how feasible (or even desirable) it is to do something like this (especially if not also going thereby down the full Delphi "class" route).
I think it should be done together with `class'. But currently I'm more busy with other things, so I won't start working on this now ...
Frank