On 7/27/14, 1:35 AM, Daniel Murphy wrote:
"Marc Schütz" " wrote in message
news:[email protected]...
IIRC the core reason is that expression nodes in the AST cannot
contain statements. Isn't it possible to create a "bridge" node type
that is allowed to appear in expressions, but may also contain
statements?
Sure, but that would be horrible (from an implementation point of view).
The better way is to use an ir/backend inliner, ie use gdc or ldc.
Ionno. There are a few high-level constructs in D that are amenable to
front-end inlining - doing so in the backend entails quite a bit of
assembling the cow back from the burger. -- Andrei