From: John P. Looney (john at domain antefacto.com)
Date: Thu 02 Aug 2001 - 13:59:02 IST
On Thu, Aug 02, 2001 at 10:45:23AM +0100, Stephen Shirley mentioned:
> On Thu, 2 Aug 2001, John P. Looney wrote:
> > No offense Conor, but I strongly recommend you stick to Perl, Shell, TCL
> > or Java! Something that'll do your garbage collection for you.
> *Ouch*. Ok granted it was a rather fundamental c question, but everyone
> has to learn somehow - I believe any c programmer would have asked this
> question at some point.
I remember when I learned it, properly...we had a project in 4th year in
college that was supposed to teach us lex and yacc. Every symbol it
matched (whether a keyword, character, number or whitespace) was returned,
and I'd to strdup() it & use it. I thought "Ah, it's only a small program.
I won't bother chasing the free()s".
I'd a little while loop that was missing an increment. It malloced 16
bytes or so...and then did it again. Till the machine died.
Oh, how I wished I could have done the project in bash.
Kate
--
When I say 'free', I mean 'free': free from bond, of chain or command:
to go where you will, even to Mordor, Saruman, if you desire. "
-- Gandalf, paraphrasing the choice between Free and Non-free software
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:27 GMT