Is there any way to fix this elegant way to walk a tree at compile time?
Gareth Charnock
gareth.charnock at gmail.com
Mon Jan 17 18:43:58 PST 2011
On 18/01/11 01:30, Gareth Charnock wrote:
> alias staticReduce!(concan,staticMap!(Flatten,Tree.ChildrenTuple))
> Flatten;
Actually, this code is a little bit brain-dead. There's no stopping
condition for the recursion and I'm not sure what I was trying to do
with the second string s = "" template parameter. That should be handled
by the template "return value". Must be getting late. Sorry.
More information about the Digitalmars-d-learn
mailing list