P
Pit Capitain
Ara.T.Howard said:hmm. i guess here
def a; 'forty-two'; end
set_var 'a', 42
p a
we get the method. and here
def a; 'forty-two'; end
a = 42
p a
we get the local_variable. so in either case you get a name clash -
but the sense of it is reversed with set_var.
Yes, this is what I wanted to show. "Name clash" was the wrong term.
i wonder if this is un-intuitive enough to render it useless?
Oh no, this isn't useless at all! Don't get me wrong. I only wanted to
show the difference to "normal" local variables.
Regards,
Pit