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

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sat Apr 29 2000 - 07:56:25 EST


> > that everything that I found was exciting in C++ could be done just as
> > well in C.
>
> That's bullshit.

Actually its programming, and its maths. You can write any program with
any feature in any turing complete language. This means you can write object
oriented message passing vi macros.

> Then you don't know C++ and have a very narrow scope in understanding
> modern programming language, parametric classes, class prototypes,
> OOP message passing over a network, etc...

C++ is just a syntax wrapper over C with some bad exeception handling
included. It doesn't even do a good job on object orientation compared to
stuff like smalltalk. People do object oriented programming in cobol. Its
a programmer feature not a language feature.

> No more problems than assembler linkage layer in EGCS.

You also need to provide an interrupt safe, thread safe and smp safe lockless
exception handling mechanism for the C++ exceptions. You can't really avoid
that as you will want to do memory allocation and a memory allocation can
and must fail gracefully.

Alan

-
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:16 EST