[fpc-pascal] with in classes/records

Michael Van Canneyt michael at freepascal.org
Thu Oct 4 16:19:25 CEST 2018



On Thu, 4 Oct 2018, Ryan Joseph wrote:

>
>
>> On Oct 4, 2018, at 8:34 PM, Michael Van Canneyt <michael at 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.


More information about the fpc-pascal mailing list