From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2002-11-08T17:51:19+09:00 Subject: Re: accessing structs defined in eval.c in extension In article <200211080558.gA85wGd11700@moulon.inra.fr>, ts wrote: >>>>>> "P" == Phil Tomson writes: > >P> ....yeah, I'm trying to do something wierd... > > Like you said you are trying to do something weird ... > >pigeon% ruby -rii -e 'a = Proc.new {|i| i += 1}; dump a' >Proc >nd_var > DASGN_CURR i >nd_body > NEWLINE <-e:1> > DASGN_CURR i > CALL + > DVAR i > ARRAY > LIT 1 > What is the ii library that you're loading with the -r? Here's what I get when I try to run this: $ ruby -rii -e 'a = Proc.new {|i| i += 1}; dump a' ../ruby: No such file to load -- ii (LoadError) $ ruby -v ruby 1.7.3 (2002-11-07) [i686-linux] Anyway, looks very cool, but I'm not sure how you got it to work... Phil