[fpc-pascal] A better way?
Ryan Joseph
ryan at thealchemistguild.com
Fri Apr 15 11:00:11 CEST 2016
> On Apr 15, 2016, at 3:46 PM, Tony Whyman <tony.whyman at mccallumwhyman.com> wrote:
>
> You could describe it as typecast done in the var clause of a method. The right hand identifier is not restricted to function parameters.
I’m not understanding how this would work. I’ve read that the keyword (I’ve never heard about until now) makes a variable share memory so it’s like an alias I guess.
So, a common scenario is a member variable being declared as TObject then having to typecast it every time I need to access one of it’s methods. Declaring another variable in each function instead of typecasting is perhaps more work but maybe I’m not getting it.
Thanks.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list