Messages in this thread | | | From | "Anthony Barbachan" <> | Subject | Re: C++ in kernel (was Re: exception in a device driver) | Date | Tue, 12 Jan 1999 22:31:16 -0500 |
| |
-----Original Message----- From: Martin Mares <mj@atrey.karlin.mff.cuni.cz> To: Marc Espie <Marc.Espie@liafa.jussieu.fr> Cc: linux-kernel@vger.rutgers.edu <linux-kernel@vger.rutgers.edu> Date: Tuesday, January 12, 1999 8:55 AM Subject: Re: C++ in kernel (was Re: exception in a device driver)
>Hello, > >> C++ template expansions can do the exact same things C macros do, with >> strict type-checking, and with smarter behavior, since you can change >> the code emitted depending on the type of the object. >> This can also replace loop unrolling in some cases, with much MORE >> control over what's goin on than with compiler flags. > > Do we really want to replace straight-forward use of macros with >anything that requires 150 pages to be defined clearly? >
Straitforward marcos!?!?!?!?!?!?!?!?!!?!?!?!?!!?!?!!??!!!?!?!?!?!?? Actually most macros could be best replaced by inline functions, which is much clearer.
> Have a nice fortnight >-- >Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ >Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth >"REALITY.SYS corrupted - reboot Universe (Y/N)?" > >- >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/ >
- 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/
| |