[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C++ religious war (was: llua Higher-level C API for Lua)
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 23 Mar 2014 12:02:50 +0200
On Sun, Mar 23, 2014 at 10:35 AM, Sean Conner <sean@conman.org> wrote:
> Anything in mind on how to replace or remove them?
I once experimented with a LuaMacro solution, defining a new 'export'
keyword for C [1]. Any declaration beginning with 'export' would be
written to an automatically generated header file; if that file
differed from the last run, the actual header would be updated. C is
born to be preprocessed, so I didn't feel too guilty. (Curiously
enough I've moved away from wholesale syntax modification for Lua with
macros, but it has been useful for some C projects)
> -spc (Who tends to get antsy when a source file gets over 2k lines ... )
There we agree; that's large! (I present Lake as an example of
arrested software development; it's a 3.5K script that should be a
properly modularized 5K program)
It is indeed a problem when a language forces a class implementation
to fit into one file, although heaven knows a 4Kloc class is simply
way too big.
In practice, my Lua modules tend to be about 800 lines. A source tree
full of 100 line mini-modules feels awkward.
steve d.
- References:
- Re: C++ religious war (was: llua Higher-level C API for Lua), Hisham
- Re: C++ religious war (was: llua Higher-level C API for Lua), steve donovan
- Re: C++ religious war (was: llua Higher-level C API for Lua), Roberto Ierusalimschy
- Re: C++ religious war (was: llua Higher-level C API for Lua), Jeremy Ong
- Re: C++ religious war (was: llua Higher-level C API for Lua), Hisham
- Re: C++ religious war (was: llua Higher-level C API for Lua), Coroutines
- Re: C++ religious war (was: llua Higher-level C API for Lua), steve donovan
- Re: C++ religious war (was: llua Higher-level C API for Lua), William Ahern
- Re: C++ religious war (was: llua Higher-level C API for Lua), Tim Hill
- Re: C++ religious war (was: llua Higher-level C API for Lua), steve donovan
- Re: C++ religious war (was: llua Higher-level C API for Lua), Sean Conner