Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2006, 12:12 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Okay, nevermind, I jumped the gun there by misreading your post... I'll re-edit this post later.



Okay, I've looked at this problem in detail.


evalFIX() works properly, yes.
eval() - the problem may or may not be a problem.


arg ? true : false

arg before it does ?: gets cast to a float -- Objects / arrays get cast to 0.0 obviously, which is why that logic fails with them.

Last edited by Rick; 06-22-2006 at 12:45 PM..
Reply With Quote
  #2  
Old 06-22-2006, 02:14 PM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
Quote:
Originally Posted by Rick
Okay, nevermind, I jumped the gun there by misreading your post... I'll re-edit this post later.



Okay, I've looked at this problem in detail.


evalFIX() works properly, yes.
eval() - the problem may or may not be a problem.


arg ? true : false

arg before it does ?: gets cast to a float -- Objects / arrays get cast to 0.0 obviously, which is why that logic fails with them.
Mhmm... Replace eval() by...
PHP Code:
if ( var ) return true;
else return 
false
... It does the same as arg ? true: false;

It casts the variable, yes... But that's where the problem is. It should only return false when it is false ("", null, false, "false" ), and in every other occasion, return true ( -1, "foo", {"stuff"}, new Object() ).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.