>  Probably, and certainly, I'm stupid but why don't you write ?
>
>    class A
>       attr_accessor :sym
>       def try
>          @sym = "works"
>       end
>    end
>
>  it's faster to write and faster to execute
>
> Guy Decoux

Sure I do this too but this does not work for virtual attributes. One  of
the
attractive features of Ruby that is so easy to enhance the core language
with
your do-it-your-self virtual attribute (read | writers).

Anyway this thread was very useful for me - I always forget about those
variables created out of thin air ...

Merry Xmas | Hanukah | end of Ramadan | take your pick ..

Christoph