From: "Peña, Botp" Date: 2005-07-30T17:29:59+09:00 Subject: Re: make local var visible Trans [mailto:transfire@gmail.com] wrote: #botp, # #It would require declarations, I think. Ruby is, for the most part, a #declaration-free language. This is matz choice. Instead you can tell #what a thing is by how it looks: "Class", "Module" or "Constant", #"@@class_var", "@instance_var", "$global_var, "method" or "local_var". # #It's probably a very good thing that globals have a visual clue. As for #the others, I sometimes think not. Yes, knowing what a thing is right #off is nice, but the perlishness is hard on the eye. # #T. # k, if we cannot adjust vars, How about creating fxn declarations that unlike methods they can see through... x = 1 deff fx p x end fx # prints 1 But i think it's an overkill to create new decl just so one can just see through, no? thanks and kind regards- botp