Function-pointer valued enums

Araq rumpf_a at web.de
Sat Jan 23 06:16:46 UTC 2021


On Saturday, 23 January 2021 at 00:21:25 UTC, H. S. Teoh wrote:
> D is the only language I know of that can automate things to 
> this level
> of awesomeness.

So learn a programming language with an AST based macro system. 
There are a couple of these around these days and some of them 
(Rust, Nim, Elixir ...) can generate a 'switch' statement at 
compile-time...


More information about the Digitalmars-d mailing list