Re: Simplicity has a future



Ben Pfaff wrote:
"Tomas" <No.Email@Address> writes:

Richard Heathfield posted:

foo *foo_create(int bar)
{
foo *new = malloc(sizeof *new);
if(new != NULL)
{
new->bar = bar;
}
return new;
}

specifically to remind me, should I ever try to use a C++ compiler on
the code, that I'm making a big mistake.
A facility as simple as "find and replace" solves the keyword problem.

Yes, and at the same time it screws up all the comments that use
"new" as an English word.

Or even worse messages that are output to the user.

Please enter then newobject price:
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
.



Relevant Pages

  • Re: Simplicity has a future
    ... Ben Pfaff wrote: ... specifically to remind me, should I ever try to use a C++ compiler on ... But C++ programmers aren't stupid enough to need comments. ...
    (comp.lang.c)
  • Re: Order of operations
    ... side effects and require to documentthose odd behaviours. ... to remind you. ... The compiler can only guess that a side effect may occur. ... to solving the halting problem. ...
    (comp.lang.perl.misc)
  • [OT] Re: newbie strcmp woes
    ... On Wed, 24 Mar 2004, Ben Pfaff wrote: ... For example, ERT ... When I run ERT's text through the 'gcc' compiler for the C language, ...
    (comp.lang.c)
  • Re: Newb- Global Array
    ... Ben Pfaff wrote: ... >>supposed to conform to? ... and Dave Kristol provided us with an ANSI C ... compiler for the final testing." ...
    (comp.lang.c)
  • Re: Simplicity has a future
    ... specifically to remind me, should I ever try to use a C++ compiler on ... and at the same time it screws up all the comments that use ... "new" as an English word. ...
    (comp.lang.c)