Hi,

what happens here?

    class C
    end

    c = C.new

    class <<c ; @x = 'X' ; end

    puts C.instance_variables, C.instance_eval( '@x')
    puts c.instance_variables, c.instance_eval( '@x')
    puts @x

Output:

    nil
    nil
    nil

Thanks in advance

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de