yarv-dev-en:125
From: "Carlos Monti" <slaytanic gfxnstuff.com.ar>
Date: Tue, 20 Jun 2006 22:48:24 -0300
Subject: [yarv-dev-en:125] Class variable initialization bug?
ML: yarv-dev-en quickml.atdot.net
New Member: slaytanic@g...
Hello everyone,
I've just begun to play with yarb and I've found out that the
following works in plain old ruby but not yarv:
class Base
@@var = {'test' => 'test'}
end
class IBreakYARV < Base
var.replace({'t' => 't'})
end
yarb outputs:
instance.rb:6:in `<class:IBreakYARV>': uninitialized class variable
@@var in IBreakYARV (NameError)
from instance.rb:5:in `<main>'
I haven't found any documentation that states how compatible yarb
wishes to remain in respect to the official ruby interpreter, so I'm
wondering, should this be filed as a bug? Perhaps with a patch to fix
it?
I find the project very interesting and would like to help out where needed.
Regards,
Carlos.
--
ML: yarv-dev-en quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml
How to unsubscribe from the ML:
- Just send an empty message to <yarv-dev-en quickml.atdot.net>.
- Or, if you cannot send an empty message for some reason,
please send a message just saying 'unsubscribe' to <yarv-dev-en quickml.atdot.net>.
(e.g., hotmail's advertisement, signature, etc.)
Members of <yarv-dev-en quickml.atdot.net>:
ko1@a...
nohmad@g...
surrender_it@y...
tom@i...
wilsonb@g...
mfp@a...
curt.hibbs@g...
tsuraan@t...
kero@c...
why@w...
joaopedrosa@g...
grahamamacdonald@g...
adam.shelly@g...
gclryd-yarv-dev-en@m...
brixen@g...
jeffrey.dik@m...
rubyzbibd@u...
heidegger101@g...
klaus_momberger@y...
kashia@v...
chneukirchen@g...
aamine@l...
emiel@r...
kig@m...
pjpizza@r...
ksruby@g...
zn@m...
chris.a.williams@g...
eric@e...
gzoller@g...
ruby-forum-incoming@a...
diving@x...
steven@l...
emk.lists@g...
znmeb@c...
meinrad.recheis@g...
gerardo.santana@g...
carl.lerche@v...
drbrain@s...
james.britt@g...
joern-ml1@m...
sauer@b...
mark-ruby@a...
krisleech@i...
stephen.bannasch@g...
cies.breijs@g...
rgl@r...
nitayj@g...
xennocide@y...
slaytanic@g...
-> 125 2006-06-21 10:48 [slaytanic gfxnstuff.] Class variable initialization bug? 126 2006-06-21 11:16 ┗[ko1 atdot.net ]