[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: OT Clean C standard?
- From: Rob Kendrick <rjek@...>
- Date: Thu, 24 Jun 2010 14:29:39 +0100
On Thu, 24 Jun 2010 09:27:07 -0400
Patrick <firstname.lastname@example.org> wrote:
> I am re-reading the Lua reference manual. I see that Lua is written
> in a subset of ANSI C and C++ known as clean C. I would like to
> improve my C code and what better way then to follow in the Lua
> developers footsteps but I can't find a references to this online.
> Could someone point the way?
I imagine they're simply referring to the subset of ANSI C that is also
valid C++. Mostly, this is avoiding using things like "new" or
"delete" as identifiers. Beyond that, it's just tidy,
warning-free, and elegant. You can't really write a book on how to do
that; it comes with experience.