Search

April 14, 2019
Learn »
...notice the double brace


Because then the outer brace groups the body... and the inner...
April 03, 2019
General »
...it could only safely cast away the outer layer of shared. I thought that it...
April 02, 2019
Learn »
...the way you think it is:

Outer.Inner innerObj = Outer.Inner(parameters);

¹ You can...
April 02, 2019
Learn »
On 2019-04-02 20:44, Q. Schroll wrote:

It works if the struct is...
April 02, 2019
Learn »
...Outer because Inner objects are not outer objects and don't implicitly own an Outer...
April 02, 2019
Learn »
Hello,
April 01, 2019
General »
...to deal with automatically casting away the outer level of shared within the member functions...
March 31, 2019
General »
...reference to the enclosing class through `this.outer`.
By putting Inner outside of class A...
March 31, 2019
General »
...be able to 'lock' it inside the outer class, so that raw instances of it...
March 31, 2019
Issues »
...de

import std.stdio;

class Inner {}

class Outer {
  Inner inner; alias inner this;
  this(Inner...
24 25 26 27 28 29 30 31 32 33 34 35
Next ›   Last »