2006/7/12, Michael Van Canneyt <[EMAIL PROTECTED]>:
It's not good practice to have local variables with the same name as a
public method/property. How will you tell which one is used ?
(obviously you can find out, but at first glance it will not be clear)

Well, I was always doing Self.SetName in these cases... (as an example
here). Same thing for functions implemented in different units (was
hapening): unit1.ProcedureInUnit and unit2.ProcedureInUnit. So it was
obivious for me since local var always have priority.

I was seeing it exactly as the 'with .. do' block.

But this is ok, I'll work the FPC way. I'm not sure this (FPC) will
change anyway :)

Thank you.

--
Alexandre Leclerc
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to