[fpc-pascal] with in classes/records

Ryan Joseph ryan at thealchemistguild.com
Thu Oct 4 14:25:32 CEST 2018



> On Sep 26, 2018, at 1:14 AM, Benito van der Zander <benito at 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.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list