Thread: function: eval
View Single Post
  #7  
Old 03-24-2008, 11:37 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Question: should eval be able to access temp. variables declared within the scope that eval is called? e.g.,

PHP Code:
temp.a_variable 74;
eval(
"this.ihaveadream=temp.a_variable+1"); 
Otherwise, it would be written to allow the access to only those temp. variables declared within the executed string.
PHP Code:
eval("temp.a=37.694; this.oridont = temp.a/6;"); 
e: I have updated the first post with a new version (actually, several times tonight, so far...)
e2: in and ',' operators are conflicting by precedence (',' < in). Inspire me to solve the problem that is 'in |a,b|'! It's tough to say that ',' could have enough foresight to see it's part of in.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/

Last edited by Tolnaftate2004; 03-24-2008 at 12:13 PM..
Reply With Quote