[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Warnings for excessive macro arguments
From: |
Ralf Wildenhues |
Subject: |
Re: Warnings for excessive macro arguments |
Date: |
Mon, 23 Aug 2010 23:45:14 +0200 |
User-agent: |
Mutt/1.5.20 (2010-04-22) |
* Yavor Doganov wrote on Mon, Aug 23, 2010 at 09:42:54PM CEST:
> Eric Blake wrote:
> > I have to wonder if there are cases where rejecting extra arguments
> > might not be advisable,
>
> No, the behavior should remain the same (silently ignoring them); any
> change smells like a dangerous path to follow. The only difference
> would be the warnings (well, errors with -Werror, unfortunately).
The problem with this approach is that we then cannot ever extend a
macro by adding new detected arguments, without also breaking backward
compatibility that way. That means, each feature addition requiring
more arguments would now also require a new macro name, wasting more
good names in the process. :-/
I know there is a balance to strike, but it's not an easy one.
Cheers,
Ralf
- Warnings for excessive macro arguments, Yavor Doganov, 2010/08/23
- Re: Warnings for excessive macro arguments, Eric Blake, 2010/08/23
- Re: Warnings for excessive macro arguments, Yavor Doganov, 2010/08/23
- Re: Warnings for excessive macro arguments,
Ralf Wildenhues <=
- Re: Warnings for excessive macro arguments, Eric Blake, 2010/08/23
- Re: Warnings for excessive macro arguments, Ralf Wildenhues, 2010/08/24
- Re: Warnings for excessive macro arguments, Yavor Doganov, 2010/08/24
- Re: Warnings for excessive macro arguments, Ralf Wildenhues, 2010/08/24
- Re: Warnings for excessive macro arguments, Yavor Doganov, 2010/08/24