Re: Happy christmas
- From: "Malcolm McLean" <regniztar@xxxxxxxxxxxxxx>
- Date: Tue, 25 Dec 2007 09:15:40 -0000
"santosh" <santosh.k83@xxxxxxxxx> wrote in message
It's not a good policy.
And this particular task is also doable in standard C with no loss in
functionality or efficiency. I understand that the Committee had an
overall policy to include only those new functions in the Standard
library that would be impossible or difficult to replicate in user
code. This is opposite to the philosophy of the C++ Committee.
For instance everyone can knock up a strcpy() in a matter of minutes. You can even improve the ANSI version somewhat.
But if you are reading standard, workaday code, that is maybe manipulating a user report in a protein program, its a big help if the calls are familiar with you. You don't want to be distracted by
if( str_lsetsafe(fred, FREDLEN, jim, 0, -1) == ERRVAL)
goto genbufferror;
when all we're doing is setting fred equal to jim.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
.
- Follow-Ups:
- Re: Happy christmas
- From: santosh
- Re: Happy christmas
- References:
- Happy christmas
- From: jacob navia
- Re: Happy christmas
- From: Ian Collins
- Re: Happy christmas
- From: santosh
- Happy christmas
- Prev by Date: Re: read image from url
- Next by Date: Re: Behavior of the code
- Previous by thread: Re: Happy christmas
- Next by thread: Re: Happy christmas
- Index(es):
Relevant Pages
|