From: Tom Sawyer Date: 2003-01-06T06:41:36+09:00 Subject: Re: executing block at toplevel from within a class On Sunday 05 January 2003 02:18 pm, Tom Sawyer wrote: > WARNING do not attempt: > > class PANIC > def initialize > toplevel.define_singleton(:lockup) { self } > end > end > PANIC.new > lockup > > i ran something like this via an apache/mod_ruby script and my machine > locked up. your milage may vary, but i doubt it will be good milage in any > case :) i recant my warning. this DOES NOT lockup up one's system. something locked up mine though related to this and trying to access an instance variable that didn't exist. ah well, the mysteries of coding. :) -transami