lkml.org 
[lkml]   [1999]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: C++ in kernel (was Re: exception in a device driver)
Date

-----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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.740 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site