Static Foreach

Philippe Sigaud philippe.sigaud at gmail.com
Sun Nov 24 13:07:42 PST 2013


On Sun, Nov 24, 2013 at 9:54 PM, Shammah Chancellor
<anonymous at coward.com> wrote:
> On 2013-11-24 19:42:11 +0000, Philippe Sigaud said:
>
>> The consensus might well be 'use recursion' :) That's what I'd do in
>> your case. CT computation on types is a lot like functional
>> programming: recursion and immutability.
>>
>> Another solution would be to construct you type as a string, and then mix
>> it in.
>
>
> Yes.  That's what I'm doing, and it's ugggglyyyy.

learn to stop worrying and love the String
(http://en.wikipedia.org/wiki/Dr._Strangelove)
:-)

> This seems excessive:
>
> https://github.com/schancel/gameserver/blob/master/source/messages/core.d#L176

Indeed :)  (btw, you're using EvaulateMessageModules, when I think you
want Eval*u*ateMessageModules)


More information about the Digitalmars-d mailing list