I like C and have written a few yards of it over the last 30 years. I also like the fast results I can get from PB! There is a downside too, I keep tripping up over PB's "different" use of pointers, and the lack of ++, --, +=, -= operators. It seems to me that these tricks can mostly be done only by the compiler (or I suppose an interpreter), though coding a replacement for prefix ++ looks easy:
but it leaves the coder begging for more.
Code:
FUNCTION plusplus( BYREF i AS LONG, OPT BYVAL n AS LONG) AS LONG IF n = 0 THEN INCR i ELSE i = i + n END IF FUNCTION = i END FUNCTION
Comment