|
-
May 9th, 2012, 01:35 PM
#3
Thread Starter
Member
Re: Script Engine - F2
 Originally Posted by Joacim Andersson
With that said, I must say that I find the structure of your language a bit odd. For example you use -> for both assignment and as the object inspector (the separator between the object and its properties). I also find your WHILE loop confusing, but I suspect that is because of a typo in your code... To me the following: "while (%i == 10)" would mean that you would never enter the while loop since the variable %i has the value 1 when it reach that line. Or doesn't the while statement read "while %i is equal to 10"?
Your totally right (on that while loop), i made huge mistake there ill make the changes right away.
maybe i was sleepy atm i was doing it, so much lines of code 
The "->" are indeed looking out of place but they are handled by the function trap, first it checks if the object is actually binded, then it goes to the next param wich is the property, then it checks if the property does exist in there, then it checks what kind of type the value holds of that property, (bool,string, etc) and converts to a proper value to finally set the value given.
- Barret
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|