From: Hugh Sasse Staff Elec Eng Date: 2003-09-11T18:33:20+09:00 Subject: Re: What *are* variables? Which are nil now? On Thu, 11 Sep 2003, Gavin Sinclair wrote: > >> You can get a list of variables in other scopes as well. I have a > >> marvellous proof for this, which this margin is too small to contain. [...] > > I'd like to know how to extract this info from Ruby. It might not have > > Heh, all I had in mind was this: if you can get a Binding to another > scope, then you can execute "local_variables" in that binding. To wit: Oh, *nice*! Yes, and I can roll that into the exception object I throw. Thank you Hugh