<div class="gmail_quote">On Fri, Jul 13, 2012 at 10:19 PM, Andrei Alexandrescu <span dir="ltr"><<a href="mailto:SeeWebsiteForEmail@erdani.org" target="_blank">SeeWebsiteForEmail@erdani.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 7/13/12 1:59 PM, Gor Gyolchanyan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Doesn't this make sense?<br>
<br>
class Fruit<br>
{<br>
     class Seed { }<br>
}<br>
<br>
class Apple: Fruit<br>
{<br>
      class AppleSeed: Fruit.Seed { }<br>
}<br>
<br>
This means, that as Fruit.Seed needs access to enclosing Fruit,<br>
AppleSeed, being a Fruit.Seed will also have access to enclosing Fruit,<br>
which is Apple.<br>
DMD 0.259 has this to say:<br>
<br>
Error: class main.Apple.AppleSeed is nested within Apple, but super<br>
class Seed is nested within Fruit<br>
<br>
Which doesn't make sense, IMO. What do you guys think about this? Who<br>
makes more sense me or DMD 2.059?<br>
</blockquote>
<br></div></div>
Untested:<br>
<br>
class Fruit<br>
{<br>
    static class Seed { }<br>
}<br>
<br>
class Apple: Fruit<br>
{<br>
     static class AppleSeed: Fruit.Seed { }<br>
}<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Andrei<br>
</font></span></blockquote></div><br>The whole point is to have it not static. I need it to be properly nested with the this.outer.<br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>