Re: Simplicity has a future
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 06:12:14 +0000
Tomás said:
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, but the problem with simple solutions is that they are sometimes too
simple. For example, s/new/newobject/g is a simple fix, but quite likely to
result in tears.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- References:
- Simplicity has a future
- From: jacob navia
- Re: Simplicity has a future
- From: Tomás
- Re: Simplicity has a future
- From: jacob navia
- Re: Simplicity has a future
- From: Tomás
- Re: Simplicity has a future
- From: Keith Thompson
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Tomás
- Simplicity has a future
- Prev by Date: Re: Bit fiddling
- Next by Date: Re: Random Number Generation
- Previous by thread: Re: Simplicity has a future
- Next by thread: Re: Simplicity has a future
- Index(es):
Relevant Pages
|