Let me rephrase the question: Why should inlining a function be impossible, if it can be done by a simple AST transformation?
It's not impossible, dmd's inliner just can't currently do it. The transformation isn't all that simple either.
Daniel Murphy via Digitalmars-d Tue, 03 Feb 2015 02:36:04 -0800
Let me rephrase the question: Why should inlining a function be impossible, if it can be done by a simple AST transformation?
It's not impossible, dmd's inliner just can't currently do it. The transformation isn't all that simple either.