From: Vasyl Smirnov Date: 2007-11-08T19:18:57+09:00 Subject: Re: Language Popularity - PHP vs Ruby? On Nov 7, 8:35 pm, tho_mica_l wrote: > Repeating this test with a global variable $foo might be more > revealing though, as it is unclear in which context @foo is evaluated. > > or > > p defined?(Foo) > class Foo > end again, the latter form somehow does work :) defined.rb: #!/usr/local/bin/eruby <% p defined?(Foo) class Foo end p defined?(Foo) %> outputs << nil "constant" >> to the browser. So maybe just the global vars are shared?