SphereServer BugTracker - SphereServer
View Issue Details
0001505SphereServernew feature requestpublic30-08-08 14:5109-09-08 16:22
theBug 
 
normalfeatureN/A
closedno change required 
 
 
Not Available
None
None
0001505: Should allow appointing a var or tag in if or while statement
We should be able to give values to variables or tags in "if"s and "while"s. Here is the example:

if(var.test = <var.oldtest>)
//stuff that uses <var.test>
endif

or

while(local.test = <anobject.f_get_something> > 5)
//stuff that uses <local.test>
endif
Especially it would be really useful using them in "while"s.
No tags attached.
Issue History
30-08-08 14:51theBugNew Issue
30-08-08 14:51theBugNightly Version => Not Available
30-08-08 14:51theBugExperimental Flags => None
30-08-08 14:51theBugOption Flags => None
01-09-08 22:51nazghulNote Added: 0000080
09-09-08 13:21Fire-Dragon-DoLNote Added: 0000088
09-09-08 16:22nazghulStatusnew => closed
09-09-08 16:22nazghulResolutionopen => no change required

Notes
(0000080)
nazghul   
01-09-08 22:51   
Very unlikely. Most older scripts use "=" and "==" without making any difference, sou Sphere cannot reliably decide if you mean a comparison or an assignment.

In other words: This would break zillions of older scripts
(0000088)
Fire-Dragon-DoL   
09-09-08 13:21   
yes i can agree with naz...

it's a normal things for language but we can avoid this feature...doesn't create problems to anyone if you don't put it and creates problem if you do :P