lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 19/08/2013 10.23, steve donovan wrote:
> On Mon, Aug 19, 2013 at 10:17 AM, Coda Highland <chighland@gmail.com> wrote:
>> But if we're taking C++11 into account, you could write a full-blown
>> type-aware printf replacement with printf-styled syntax thanks to
>> variadic templates.
> 
> Ah, now I remember why I now write C and Lua by preference.
> 
> Nice to see that the Qt solution is sensible. C++ is not fun if you
> can't build things on it ;)
> 

Well C++ is a sort of Dr.Frankenstein's creature: it has so many
different parts, sometimes it seems it has a life of its own and it also
went out of control of its creator.

No kidding: see how template metaprogramming (TMP) was discovered by
accident [1] - a Turing complete sub-language that wasn't foreseen!!! :-)


[1]
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Templates/Template_Meta-Programming#History_of_TMP

> But gentlemen, I fear we are drifting off topic, unless someone can
> pull in Lua really quickly.
> 
> 

Well, since we are on the sci-fi edge: maybe a sort of TMP can be
sanitized, tamed and brought into Lua 5.3 - all with a Lua flavour of
course! :-)


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments