Tuesday, May 3, 2011

[Rails] Re: Php to Ruby compilation software

Yes,it's self compiled,
why using _VARS, and not directly local_variables?
because php has some weird var logic,
like say
$a =1;
echo $GLOBALS["a"]; //this is 1, it automaticly affects entry in
$GLOBALS, and in the opposite direction,

$GLOBALS["a"]=1;
echo $a; //now $a is 1, which is really unfornate.

not to mention some indirect variable access.

like
$a=1;
$c="a";
echo $$c; // this is 1, or
$$c = 2; //if affects $a,$GLOBALS["a"], which is unfornate,
all the ugliness is to handle php's weird behavior.


On May 4, 9:15 am, Tim Shaffer <timshaf...@me.com> wrote:
> That's probably the ugliest ruby code I've ever seen.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate