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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707