Improving std.regex(p)

Ellery Newcomer ellery-newcomer at utulsa.edu
Mon Jun 21 07:47:00 PDT 2010


On 06/19/2010 11:27 PM, Ellery Newcomer wrote:
> 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?

Nevermind, I see what you're doing now.


More information about the Digitalmars-d mailing list