On Fri, Mar 2, 2012 at 10:48 AM, leledumbo <leledumbo_c...@yahoo.co.id> wrote:
>> But if I have many methods with a identifier like Value, I will have
> to modify all methods and put something like lValue, Value1, etc.
>
> Trust me, that's MUCH better than letting the compiler compiles wrong code.
> i.e. it refers to identifier we don't mean to refer. I've had a lot of this
> before and the compiler really helps here to avoid hidden error. I usually
> don't use prefix on identifiers but rename it to something more appropriate
> (or specific) instead.

The "prefix approach pattern" is used a long time in arguments, e.g.,
AValue (I prefer aValue).
We do not have case-sensitive so, everything should have a prefix or
something to distinguish an indentifier of other (types, classes,
interfaces, units, etc);

I'm just following the pattern of language.  ;-)

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

Reply via email to