Re: Should this work?
Posted: Sat Oct 31, 2009 11:34 pm
ah, wonderful. thank you very much.
http://www.purebasic.com
https://www.purebasic.fr/english/
Mistrel wrote:Is it necessary to have the Boolean keyword? Wouldn't just surrounding an assignment operation be enough to evaluate it as an expression?
I think no. If you have far indented source code, a Keyword (e.g. Boolean) moves the expression to the right out of the visible part of the editor window. The source code is worse readable through this.Fred wrote:May be, but it will be much clearer like that.
Code: Select all
a = b = c
;
; if b = c then a = #True else a = #False
Code: Select all
a = 4 + 3 * (b = c)
;
; if b = c then a = 7 else a = 4
Code: Select all
LET a, b, c, d, e = x * 10
;
; a = x * 10 : b = x * 10 : c = x * 10 : d = x * 10 : e = x * 10
LET a, b, c, d, e = x = y
;
; if x = y then a, b, c, d, e are #True else a, b, c, d, e are #False