Re: Simplicity has a future
- From: Ben Pfaff <blp@xxxxxxxxxxxxxxx>
- Date: Tue, 30 May 2006 23:38:59 -0700
"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.
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
.
- Follow-Ups:
- Re: Simplicity has a future
- From: Richard Bos
- Re: Simplicity has a future
- From: Flash Gordon
- Re: Simplicity has a future
- 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: -Bstatic flag
- Next by Date: Re: Simplicity has a future
- Previous by thread: Re: Simplicity has a future
- Next by thread: Re: Simplicity has a future
- Index(es):
Relevant Pages
|