On Thu, 4 Oct 2018, Ryan Joseph wrote:



On Sep 26, 2018, at 1:14 AM, Benito van der Zander <ben...@benibela.de> wrote:

Hi,

perhaps everything would be clearer, if the default property was accessed with ^ ?

var
        wrapper: TWrapper;
begin
        wrapper := TWrapper.Create;
        wrapper^ := THelperA.Create;
end.


Sorry, back to working on this today.

That’s an idea.  Probably the other way around though since initializing
the class is the less common operation.  The compiler team is busy I guess
because I haven’t got any answers recently on questions.  I suspect
appropriating the ^ symbol will not be ok with them since it has another
reserved meaning.

Technical issues aside, it kind of defeats the purpose of the default
property...

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to