June 05, 2003 Alternative Tokens | ||||
---|---|---|---|---|
| ||||
DM doesn't support all of the alternative tokens (see 2.5 Alternative tokens
[lex.digraph]):
int main(int argc, char *argv[])
{
int i = compl((2 bitor 4) xor 4) bitand 3;
bool b = not ((true or false) and true);
b and_eq true;
b or_eq false;
b xor_eq true;
b not_eq not b;
return 0;
}
bye, Christof
--
http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de
...and what have you contributed to the Net?
|
June 05, 2003 Re: Alternative Tokens | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christof Meerwald | It does if you compile with -A. It's been in there since it was first proposed eons ago, but I haven't seen one single case of it in the wild excluding conformance test suites. "Christof Meerwald" <cmeerw@web.de> wrote in message news:bbo7ft$j4m$2@digitaldaemon.com... > DM doesn't support all of the alternative tokens (see 2.5 Alternative tokens > [lex.digraph]): > > int main(int argc, char *argv[]) > { > int i = compl((2 bitor 4) xor 4) bitand 3; > bool b = not ((true or false) and true); > > b and_eq true; > b or_eq false; > b xor_eq true; > b not_eq not b; > > return 0; > } > > > bye, Christof > > -- > http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de > > ...and what have you contributed to the Net? |
Copyright © 1999-2021 by the D Language Foundation