1. Small syntax problem

Rob:
I tried to use:
return not not x
but a syntax error was reported.
This is not a meaningless sentence. I tried to return a 0 or an 1 according
to x being 0 or not 0. Of course, this can be bypassed as follows:
return not (not x)
or:
return x != 0 (which is faster?)
Then I tried - - x and +  + x, but none worked.
I don't know if you think worthwhile to say something about this in the
reference manual.
Regards.

new topic     » topic index » view message » categorize

2. Re: Small syntax problem

rforno writes:
> I tried to use:
> return not not x
> but a syntax error was reported.
> ...
> Then I tried - - x and +  + x, but none worked.

You're the second person in 9 years to report this.
As I recall the fix is not trivial, so this has been sitting on
my todo list for a long time. I'll take another look at it.

Thanks,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu