#define and &&
#define or ||
#define not !
Pretty self-explanatory, but if Lummox wants to add those in, that'd be pretty neat. Otherwise, don't sweat it. I figure it would be pretty easy to add those.
ID:2095724
![]() Jun 6 2016, 4:39 pm
|
|||||||
Not Feasible
| |||||||
This is a very low-priority feature request. These keywords would be synonymous to:
#define and && Pretty self-explanatory, but if Lummox wants to add those in, that'd be pretty neat. Otherwise, don't sweat it. I figure it would be pretty easy to add those. |
![]() Jun 6 2016, 9:44 pm
|
|
Ew, this isn't Visual Basic :P
|
The book I learned C++ from mentioned that C++ had this too, but I never used it once, tbh.
|
Pokemonred200 wrote:
The book I learned C++ from mentioned that C++ had this too, but I never used it once, tbh. I've never seen such a thing in C++ and I'm loath to believe it exists. Perl has it, but using plain-English operators in Perl is like wearing a fanny pack in a nudist camp. |
DM actually has a few things that were taken from the BASIC dialect (even though some aren't documented):
This mimics BASIC style for loops for var/i = 1 to 10 step 2 And the "is not" operator comes from BASIC as well: if (10 <> 5) |
Looks funky imo.
#define not ! |
This particular function might be a little awol, but having the capacity to define operators and keywords would be really interesting.
|
#define not ! No need for the brackets :P |