Re: How to handle operator of undefined associativity

"bart.c" <bartc@freeuk.com>
Sat, 1 May 2010 18:56:29 +0100

          From comp.compilers

Related articles
How to handle operator of undefined associativity singh.pallav@gmail.com (Pallav singh) (2010-04-29)
Re: How to handle operator of undefined associativity bear@sonic.net (Ray) (2010-05-01)
Re: How to handle operator of undefined associativity bartc@freeuk.com (bart.c) (2010-05-01)
Re: How to handle operator of undefined associativity cr88192@hotmail.com (BGB / cr88192) (2010-05-01)
Re: How to handle operator of undefined associativity cfc@shell01.TheWorld.com (Chris F Clark) (2010-05-02)
Re: How to handle operator of undefined associativity gah@ugcs.caltech.edu (glen herrmannsfeldt) (2010-05-03)
Re: How to handle operator of undefined associativity cr88192@hotmail.com (BGB / cr88192) (2010-05-05)
Re: How to handle operator of undefined associativity gah@ugcs.caltech.edu (glen herrmannsfeldt) (2010-05-05)
Re: How to handle operator of undefined associativity cfc@shell01.TheWorld.com (Chris F Clark) (2010-05-06)
[4 later articles]
| List of all articles for this month |

From: "bart.c" <bartc@freeuk.com>
Newsgroups: comp.compilers
Date: Sat, 1 May 2010 18:56:29 +0100
Organization: virginmedia.com
References: 10-04-073
Keywords: parse, syntax
Posted-Date: 02 May 2010 22:21:00 EDT

"Pallav singh" <singh.pallav@gmail.com> wrote in message
news:10-04-073@comp.compilers...


> should user be allowed to write multiple not
>
> not not not ( expr );
> not not ( expr );


> [How does associativity matter here? Those examples may be redundant
> ... -John]


'not not expr' is sometimes used to force a value of zero or one (rather
than zero or not zero).


And when 'expr' is a textual macro, then 'not expr' may well expand to 'not
not ...'.


So a string of 'not's can be jolly useful..


--
Bartc



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.