| 05-30-2008, 10:56 PM | #1 | ||||||
Table:
|
| 05-30-2008, 11:14 PM | #2 |
set v += 1 while you're at it, allow: if [condition] then [statement] so I can stop using three lines for every IF. A while loop would be nice, too: while [condition] [block] endloop |
| 05-30-2008, 11:15 PM | #3 |
+= -= /= *= would be very nice. |
| 05-30-2008, 11:43 PM | #4 |
set v++ set a[t]-- I like my C++ :) |
| 05-30-2008, 11:52 PM | #5 |
Second one is most likely the easiest to remember -Av3n |
| 05-31-2008, 01:32 AM | #6 |
i like v++ v-- for increament and decreament but i would also like this if u wanna step higher than 1: v+=2 v-=2 this will be awesome, i wonder why many languages doesnt have this. Or maybe im wrong, but C++ doesnt have tat i think? |
| 05-31-2008, 01:45 AM | #7 |
ah, yeah c++ has that =) its the best option, noone will remember dec/inc =) so, yeah += etc is best =) |
| 05-31-2008, 03:20 AM | #8 |
+= seems best to me. Easy to remember and saves some typing. But my next choice would be ++ and --... |
| 05-31-2008, 03:44 AM | #9 | |
set v++ seems easiest, and thus best in my opinion Quote:
|
| 05-31-2008, 04:45 AM | #10 | |
I'd rather stick to set i = i+1. If not, "dec" + "inc" would be my preferred style. Quote:
![]() |
| 05-31-2008, 05:22 AM | #11 | |
+=,-= etc, because it can be used not only for increment/decrement...) Quote:
dec src i like my asm (but the code in assembler's style in jass will be really ugly) |
| 05-31-2008, 06:12 AM | #12 |
I suppose set v++ or however it works would be good. So, say I wanted to take v and add one. Would it be "v++"? (If so, then what is the =+, =*, etc. everyone keeps mentioning?) inc/dec is ugly. And option #3 is fine, honestly. I mean if you MUST, use option 2, but there's nothing WRONG with option 3. I mean, it really doesn't take that much effort to type like, 3 or 4 extra characters. |
| 05-31-2008, 09:11 AM | #13 |
in that case (what you have now) the best would be Code:
inc v dec a[t] |
| 05-31-2008, 09:55 AM | #14 | |
Quote:
Variable++ Takes the current variable and Adds 1 Variable =+ Number Takes the variable and adds the number then just swap the enumerator |
| 05-31-2008, 10:11 AM | #15 |
variable += -= *= /= would be great. |
