static class vs. static struct

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 27 16:00:14 PST 2015


On 01/27/2015 01:33 PM, Piotrek wrote:

 > On Tuesday, 27 January 2015 at 18:24:29 UTC, Ali Çehreli wrote:
 >> On 01/27/2015 08:33 AM, Piotrek wrote:
 >>
 >> >> Non-static means nested.
 >> >
 >> > Hmm,this can be misleading. Nesting in structs doesn't
 >> introduce context
 >> > pointer.

Oh, I misread what you wrote. Sorry...

 > classes and structs *nested in struct* doesn't contain the additional
 > context pointer. As opposed to class nested in class.
 >
 > Then I think we'd better not say that non-static means nested.
 >
 > Piotrek

Makes sense.

Ali



More information about the Digitalmars-d-learn mailing list