On Fri 05/02/2016 07:49, Lukasz Sokol wrote:
That it's C, not Pascal ;) and, um. sorry I do not have a c spec on hand,
does it really work that way in C - only evaluates truevalue or falsevalue not
both?
I wrote another one in another email, maybe actually having new keyword or 2 is
ok ?
and require it to be an assignment, like
x := ( condition; whentrue:=true_value; whenfalse:=false_value);
so syntactic sugar but not abusing function calls, but an assignment instead.
Well then how about: x *:=* *when* condition true_condition *otherwise*
false_condition;
How this is pascalish.
Andreas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal