On Thu, 4 Oct 2018, Ryan Joseph wrote:



On Oct 4, 2018, at 8:34 PM, Michael Van Canneyt <mich...@freepascal.org> wrote:

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

Then just tolerate the fact we have a dual meaning for assignments? Looks wrong 
but maybe not a problem.

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

And was this not the whole idea of introducing a default property in the first 
place ?

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

Reply via email to