On Thu, Sep 27, 2012 at 12:34 PM, Graeme Geldenhuys
<gra...@geldenhuys.co.uk> wrote:
> On 2012-09-27 16:08, michael.vancann...@wisa.be wrote:
>>
>> The compiler helps you by forcing you to use a prefix in objfpc mode in
>> case you forgot.
>
> The change in FPC mode objfpc was definitely a good thing. I had code
> where a class had an Index property, and other methods of that class had
> an Index parameter name. Even though it was my own code, I had to triple
> check the method's implementation to find the real meaning when I used
> the Index identifier somewhere in that method.
>
> Now with the new language rule, I don't have such issues any more. Index
> will be the property name, AIndex will be the parameter, lIndex will be
> a local variable. Much simpler for my brain to process. :)

I never said this is wrong. I just said that could be a compiler
directive or something like that.

I agree that is much simpler... but why nobody, in another language,
do the same? Does not worth it? I do not know.

Marcos Douglas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to