From: Austin Ziegler Date: 2003-12-06T02:41:13+09:00 Subject: Re: Attempted roadmap of future instance variables.... On Sat, 6 Dec 2003 01:40:42 +0900, Christoph wrote: > Austin Ziegler wrote: > .. >> I rather agree with you on disliking the @_ form, but perhaps for >> different reasons. In my module Transaction::Simple, I have named most >> of the variables in the pattern @__foo__ (e.g., @__checkpoint__) so as >> to reduce the chance of name collision. I'm not sure that I want magic >> behaviour because of my choice to do this. > The whole point of class local variables is to completely eliminate the > possibility of name collision under subclassing. That's fine for subclassing, but what about mix-ins? class A def initialise @__checkpoint__ = True end end A.new.extend(Transaction::Simple) We have a name collision there. Granted, the collision is there today, but I don't see how @_ will actually help in the case of mixins. -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2003.12.05 * 12.35.00