Improving std.regex(p)

BCS none at anon.com
Sun Jun 20 06:40:24 PDT 2010


Hello Ellery,

> On 06/19/2010 10:55 PM, BCS wrote:
> 
>> Hello Nick,
>> 
>>> "BCS" <none at anon.com> wrote in message
>>> news:a6268ff154ca8ccddf1ef51e1d8 at news.digitalmars.com...
>>>> Hello Ellery,
>>>> 
>>>>> Generally I think D's CT capabilities have a way to go yet before
>>>>> this would be worth tackling. E.g. how do you build a parse tree
>>>>> if pointers and classes aren't allowed in CT code?
>>>>> 
>>>> You use the type system. I can say from experience that (memory
>>>> issues aside) it works.
>>>> 
>>> Trivial example?
>>> 
>> Building an arbitrary tree:
>> 
> Okay, you use structs without indirection. I guess that works. How
> much copying does that entail when you e.g. pass your tree in a
> function call?
> 

At compile time as a template parameter? I think it gets passed around as 
a reference.

At runtime? That would be pointless as it has no runtime members.

-- 
... <IXOYE><





More information about the Digitalmars-d mailing list