On Thu, Dec 16, 2004 at 01:22:13PM +0900, Shashank Date wrote: > It works for me: > ------------------------------------------ > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\>irb -v > irb 0.9(02/07/03) > > C:\>irb > irb(main):001:0> def foo; a = "a"; b = 1; p Kernel.local_variables; end > => nil > irb(main):002:0> foo > ["a", "b"] > => nil > irb(main):003:0> exit > > C:\>ruby -v > ruby 1.8.2 (2004-06-29) [i386-mswin32] > > C:\> This is with the current ruby from the FreeBSD ports system: ruby 1.8.2 (2004-07-29) [i386-freebsd6] It doesn't work with today's HEAD either (just tried it), which is ruby 1.9.0 (2004-12-16) [i386-freebsd6.0] I figured with this working it would be possible to fake Python's `vars()', useful for quick conversions of Python code. -- Jos Backus _/ _/_/_/ Sunnyvale, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'