Re: survival of c++
From: fabio de francesco (fmdf_at_tiscali.it)
Date: 07/21/04
- Next message: JKop: "Re: Enumerations"
- Previous message: John Harrison: "Re: Windows Error at run-time..."
- In reply to: JKop: "Re: survival of c++"
- Next in thread: David Eng: "Re: survival of c++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jul 2004 14:11:16 -0700
JKop <NULL@NULL.NULL> wrote in message news:<3NMJc.4688$Z14.5807@news.indigo.ie>...
> fabio de francesco posted:
>
>
> > I'm still learning C++ and I like it very much, but the
> > above-mentioned thoughts are some of the main reasons I
> sometimes
> > would prefer some other language where, for example
> (Ada95) you can't
> > either add an integer and/to a float or move a value too
> big/little to
> > a variable with range constraints because the compiler
> stops you
> > before it is too late.
>
>
> int main()
> {
> float cat = 45.6;
>
> int dog = 72;
>
> int blah = cat + dog;
> }
>
>
> All compilers I know of give a warning.
A warning about an action doesn't mean that you can't do it and often
it passes unnoticed. Anyway that was just an example of many different
problems that can be caught while compiling, like the range checking
and some more features that make you to avoid problems.
I don't want to make any comparison between these ( C++ and Ada95 )
languages, because many professionals have already written about this
issue, and as far as I am concerned I like both them.
Fabio De Francesco
- Next message: JKop: "Re: Enumerations"
- Previous message: John Harrison: "Re: Windows Error at run-time..."
- In reply to: JKop: "Re: survival of c++"
- Next in thread: David Eng: "Re: survival of c++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|