Mixin replacement for switch...case?

Jerome jerome.spamable at yahoo.com
Tue Oct 23 06:30:44 PDT 2012


On Tuesday, 23 October 2012 at 10:40:12 UTC, Daniel Kozák wrote:
> I think this should be possible, look for eg. to std.bitmanip 
> bitfields template
>
> On Tuesday, 23 October 2012 at 09:47:55 UTC, Jerome wrote:
>> No answer. Should I assume that it is not possible?
>> That's something that could be done in C with a simple macro. 
>> I really would like to know to what extent mixins are a 
>> replacement for C macros for generating boilerplate code.

Thanks Daniel! It's exactly what I was looking for.  ;-)


More information about the Digitalmars-d mailing list