Hello Ellery,

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?


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><



Reply via email to