With statement extension
deed via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 29 02:15:00 PDT 2016
...
On Wednesday, 27 April 2016 at 18:34:18 UTC, Artur Skawina wrote:
> ...
> ref M() { return matrix.rawArr; }
> ref Ex1() { return e1.someProperties.someModulusX; }
> ...
If the generated code is equal, without relying on too much
optimization, I agree this is close enough, although uglier. If
so, it raises the question of why having the with-statement in
the language in the first place? However, I doubt you will have
the same control in an equally convenient way.
More information about the Digitalmars-d
mailing list