December 03, 2009 Re: How do I find the arity of an Expression? (dmd hacking) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ellery Newcomer | Ellery Newcomer wrote: > 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. It works in the version of DMD in svn. Everything in Andrei's book should be working now. >> >> 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. > |
Copyright © 1999-2021 by the D Language Foundation