[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible enhancements for Lua 5.2
- From: Patrick Rapin <toupie300@...>
- Date: Mon, 27 Jun 2011 14:13:59 +0200
> Some time ago, I had a similar need and have used pseudo-recursive C macros
> to compute the hash value at compile time: https://gist.github.com/1048415.
Thank you for that link. I have also several time tried to implement
such a compile-time hash in C, but without success (neither with
macros, enums, nor templates).
The code of Chris Savoie seems to work however (with optimizations turned on).