Small syntax problem
- Posted by rforno at tutopia.com Oct 13, 2002
- 356 views
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.