Marcos Douglas schrieb:
Just this morning I had to move some methods out of a class, so that they
could be used without an instance. IMO it's a bad idea to bind any
general-purpose identifier to an artificial container (namespace...).
Why?
Using an identifier (unit class object, or it) is better to reduce
name conflicts, do not you think? The code also become more organized,
IMHO.
Other way that people most do is using one or two letter to prefix (I
use too) but you have to repeat the prefixes in all
procedures/functions.
When you have ambiguous names, you'll always have to disambiguate in
code. If not, an identifier can be used as is.
DoDi
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel