New Operator: <>
That seems like it could be redundant.
> verb> CheckThing()> if(usr.thing == src.thing) usr << "YAY"> else usr << "BooHoo"> //isn't that the same as> verb> CheckThing()> if(usr.thing != src.thing) usr << "BooHoo"> else usr << "YAY">
Aren't those the same thing?
verb CheckThing() if(usr.thing == src.thing) // Ermm... don't want anything to happen here else usr << "BooHoo"verb CheckThing() if(usr.thing != src.thing) usr << "BooHoo"
Unfortunantly until DM has cool compiler functionality that preprocesses expressions which can be computed at compile time you can't do anything like this with const variables.
In your example, sure, but they are seldom used that way. For example:
As you can see, the second example is much nicer. :)