How do I find the arity of an Expression? (dmd hacking)

Ellery Newcomer ellery-newcomer at utulsa.edu
Tue Dec 1 13:38:53 PST 2009


On 12/01/2009 02:35 PM, Chad J wrote:
> No guarantees, but a lot of promise.
>
> http://erdani.com/d/thermopylae.pdf
> On page 114 of the draft, 14 of the pdf, in section 4.1.10, at the
> bottom: notice how Andrei seems to be hedging on properties working
> correctly.
>

Oh goodie. We're going to get arr.length += 4; to actually work.


>
> I did this though because I saw it happening in other parts of
> expression.c.  Maybe I missed some details.  Or maybe the backend will
> be fine with stuff like this.  I wonder.
>
> Yeah, if I can't put declaration expressions into other expressions,
> then things may get ugly.  I'd probably have to put more code into
> statement.c at least.
>
> Eh, I'll know how things work out soon enough.

expression.h

struct DeclarationExp

looks like you'll be fine and what I said applies really only to the parser.



More information about the Digitalmars-d-learn mailing list