On Tue, 6 Mar 2001, Avi Bryant wrote:

> Robert,
> 
Avi,

> Nice... this is, of course, exactly what we needed to be able to play with
> dispatchers in pure ruby.
>   
Thanks. I never doubted you'd notice... ;-)

> However, it needs some error checking:
> 
> class Foo
> 	define_method(:x) {puts call_stack[0]}
> end
> 
> Foo.new.x #=> SEGFAULT
> 
> I can work around it for new by using call_stack(2)...
> 
I'm not surprised. I'm not very familiar with the internals of the
interpreter; I'mtrying to learn. I'll look into but Matz is probably
needed to make it correct...

/Robert