|
Post by tsh73 on Feb 28, 2019 16:42:29 GMT -5
Is there a chance to get unary minus work?
having to write z=0-x
or z=-1*x instead of just z=-x
still feels weird even for me (user since 2007) (not to saying about NEW users - then it feels EXTREMELY weird)
|
|
|
Post by alincon on Mar 1, 2019 16:36:23 GMT -5
What about this syntax in LB5?
longCounterName +=1
instead of
longCounterName = longCounterName + 1
r.m.
|
|
|
Post by tenochtitlanuk on Mar 1, 2019 16:44:42 GMT -5
I agree- see my post a couple of days ago!
|
|
|
Post by Carl Gundel on Mar 1, 2019 16:59:39 GMT -5
I agree- see my post a couple of days ago! I'm more interested in: INC variable, 1
|
|
|
Post by tenochtitlanuk on Mar 1, 2019 17:38:42 GMT -5
I'd be very happy with that, and presumably DEC variable, 1 - or would it be INC variable, -1 with the unary minus again?
|
|
|
Post by Carl Gundel on Mar 1, 2019 18:10:13 GMT -5
I'd be very happy with that, and presumably DEC variable, 1 - or would it be INC variable, -1 with the unary minus again? Yeah, INC var 'add one INC var, 5 'add five DEC var 'subtract one DEC var, 5 'subtract five INC array(x) 'add one etc.
|
|
|
Post by alincon on Mar 1, 2019 21:17:12 GMT -5
I like the DEC and INC commands But, would there be any confusion between "DEC var" and "DECHEX?
r.m.
|
|
|
Post by Carl Gundel on Mar 2, 2019 11:56:09 GMT -5
I like the DEC and INC commands But, would there be any confusion between "DEC var" and "DECHEX? I think that DEC varName is a lot different than DECHEX$(255), for example.
|
|