#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
|
In response to Nadrew
|
|
The book I learned C++ from mentioned that C++ had this too, but I never used it once, tbh.
|
In response to Pokemonred200
|
|
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. |
In response to Lummox JR
|
|
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) |
In response to Mr_Goober
|
|
Just use defines.
|
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.
|
In response to Kozuma3
|
|
#define not ! No need for the brackets :P |
In response to GinjaNinja32
|
|
GinjaNinja32 wrote:
No need for the brackets :P No need to call parentheses brackets. |
In response to Lummox JR
|
|
Lummox JR wrote:
GinjaNinja32 wrote: Should add that to the DM ref. Parenthesis () Brackets [] Braces {} |