Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ruby Programming Language

$binding global var?

my ruby and irb don't know about $binding, it's not in the pickaxe and
not in the quickref - where did you encounter it?

On 5/29/07, Matthieu TC <matthie@yahoo.com> wrote:

Matthieu TC wrote:
> Hello,

> Can anyone satisfy my curiosity and tell me what the global variable $binding is for?

> I though it might be a default binding for eval calls but my tests didnt concur.

Irb uses $binding. But ruby does not:

$ ruby -ve 'p global_variables.grep(/binding/)'
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]

       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc