Re: [PATCH] C++ breaks on linux/ioport.h

From: Tigran Aivazian (tigran@veritas.com)
Date: Thu Apr 27 2000 - 11:05:48 EST


On Thu, 27 Apr 2000, Paul Barton-Davis wrote:
> Thats not the issue here. The issue is using the keyword "new" for a
> declaration's argument. It would be nice if this was avoided, just
> like "delete", "catch", "throw" and the rest of the C++ keyword superset.

lots of things "would be nice" but when they are not strictly necessary
nobody bothers to do them. This situation is very simple - if all ways to
mount.h go via headers that include it inside __KERNEL__ (looks like it)
and one still want to include it, then one suffers the consequences.

> If the relevant declaration is inside __KERNEL__ and so are some
> constants that user-space needs, the programmer is out of luck if
> these keywords are used in the declarations.

no, not out of luck. The programmer just does the ugly thing and copies
those declarations out of the header in its own private .hpp header,
modifying as necessary thus making the program non-portable and harder to
maintain - thats all. ;)

Regards,
Tigran.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:13 EST