Re: Les Hatton on Fortran, C, and C++
From: Gordon Sande (g.sande_at_worldnet.att.net)
Date: 11/04/03
- Next message: Peter da Silva: "Re: Something strange with g77 ..."
- Previous message: Richard Maine: "Re: Les Hatton on Fortran, C, and C++"
- In reply to: Greg Chien: "Re: Les Hatton on Fortran, C, and C++"
- Next in thread: James Giles: "Re: Les Hatton on Fortran, C, and C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 04 Nov 2003 15:37:09 -0400
In article <XDSpb.77628$275.208261@attbi_s53>,
"Greg Chien" <gchien@n.o.S.p.a.m.protodesign-inc.com> wrote:
>Subject: Re: Les Hatton on Fortran, C, and C++
>From: "Greg Chien" <gchien@n.o.S.p.a.m.protodesign-inc.com>
>Reply-To: "Greg Chien" <gchien@n.o.S.p.a.m.protodesign-inc.com>
>Organization: Comcast Online
>Date: Tue, 04 Nov 2003 18:56:55 GMT
>Newsgroups: comp.lang.fortran
>
>"Dan Nagle" <dnagle@erols.com> wrote
>> The number of one-character changes
>> which turn a correct valid C++ program
>> into an incorrect valid C++ program are mind boggling. :-(
>
>Please give an example. I thought the most famous one in terms of one
>character change was :-)
>DO I=1,10
> v.s.
>DO I=1.10
I always found (modulo my bad C syntax)
if ( a = b ) { x = y; }
to be a charming way to set both a and x
under the asumption that the value in b is suitable.
Otherwise just a is set.
Many will carelessly read this as setting x when the values
of a and b are the same.
>--
>Best Regards,
>Greg Chien
>e-mail: remove n.o.S.p.a.m.
>http://protodesign-inc.com
>
>
- Next message: Peter da Silva: "Re: Something strange with g77 ..."
- Previous message: Richard Maine: "Re: Les Hatton on Fortran, C, and C++"
- In reply to: Greg Chien: "Re: Les Hatton on Fortran, C, and C++"
- Next in thread: James Giles: "Re: Les Hatton on Fortran, C, and C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|