On 4 May 2011 02:22, femto <femto...@gmail.com> wrote:
> Yes,it's self compiled,
> why using _VARS, and not directly local_variables?
> because php has some weird var logic,
> like say
>
> $GLOBALS["a"]=1;
> echo $a; //now $a is 1, which is really unfornate.

This is because you're at the top-level namespace. The PHP script
example is badly-written in the first place, and the Ruby code it's
translated into is .... well, I hesitate to use the words on a public,
international forum :-/

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to