On 06/19/2010 11:27 PM, Ellery Newcomer wrote:
On 06/19/2010 10:55 PM, BCS wrote:
Hello Nick,

"BCS" <n...@anon.com> wrote in message
news:a6268ff154ca8ccddf1ef51e...@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.

Reply via email to