static class vs. static struct

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 27 10:24:28 PST 2015


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.

You must be thinking of structs nested inside user-defined types. 
Structs that are nested inside functions do have the context pointer.

Ali



More information about the Digitalmars-d-learn mailing list