From: Jean-Hugues ROBERT Date: 2002-05-27T00:00:05+09:00 Subject: Proc.binding(), binding.self(); RCR ? Hello, Is there a way to know about the binding of a Proc. I need something like a_proc.binding().self(): class Scheduler def post( &block); enqueue( block); end def process_loop() while block = dequeue() res = block.call() block.binding.self.signal( res) # !!! end end end class User def action() myscheduler.post { puts "Help me" } end def signal( res ); puts "Thanks!"; end end I for sure can get by with a additional parameter: myscheduler.post self { puts "Help" } ... but I would rather avoid it if possible. RCR needed ? Thanks, Jean-Hugues ------------------------------------------------------------------------- Web: http://hdl.handle.net/1030.37/1.1 Phone: +33 (0) 4 92 27 74 17