In the original example, no real variable can be named the same, so it sounds very fine to me.
/ Mirar
Previous text:
2003-12-22 21:50: Subject: C#-like properties
Isn't there already a lookup for the variable itself that's O(log(n))? It ought to be possible to device a system where the accessor functions internally are named identically as the identifier they cover, and then there's just some flag test to find out whether it's an accessor function pair or a real variable. If that means that no real variable can be named the same, I wouldn't regard it as a problem (rather the contrary, actually).
/ Martin Stjernholm, Roxen IS