From: Tom Sawyer Date: 2002-08-11T04:41:26+09:00 Subject: Re: ambiguity between local variable assignment and writter method On Sat, 2002-08-10 at 05:26, Kent Dahl wrote: > Dunno about George, but I consider $ junk and I am very vary of using > @@. Ironically we're arguing about writer methods inside classes, which > also distances us from the @. > > So, while not quite junk, they are ugly, nececarry implementation > details that need to be hidden as soon as possible :-) just to throw this out, i'm wondering why placement wasn't used to determine scope, just like when you have have variables defined outside of a block, they are available inside of it, and not local to it. here: globalvar = 'global b/c from top level ($)' class X X.classvar = 'class var (@@)' # perhaps? instancevar = 'object instance var (@)' def x localvar = 'local to x' end end i hope no one thinks that i have been trying to push a notion i've had about this, that's not modus operandi. truly i am just exploring to see in what ways things might be improved whether that can reasonably happen or not. for one day i hope to make my own language and in these discussions i am learning much that i will be able to carry into that. so, thank you! -- ~transami