News for hackers. Stuff that matters.
Re:Cttrie – Compile-time trie-based string matching for C++ by saagarjha on Friday September 14, 2018 @02:09PM (#17989429)
Interesting. The way I would have thought of doing something like this is by laying out each "switch" case sequentially in memory, then having the "SWITCH(string)" macro expand out to something that compute the offset necessary, using a similar pre-computed trie, and jump to that offset. That way fallthrough should work as expected.

There are no comments on this comment yet.