static class vs. static struct
Piotrek via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jan 27 08:33:11 PST 2015
On Monday, 26 January 2015 at 21:55:19 UTC, anonymous wrote:
> On Monday, 26 January 2015 at 21:33:10 UTC, Piotrek wrote:
>> On Monday, 26 January 2015 at 14:11:32 UTC, bearophile wrote:
>>> Non-static structs/classes have an extra pointer.
>>>
>>> Bye,
>>> bearophile
>>
>> Since when structs have an extra pointer? Maybe you are
>> talking about nested structs?
>
> Non-static means nested.
Hmm,this can be misleading. Nesting in structs doesn't introduce
context pointer.
But I agree that if we take into account a hypothetical inferred
static attribute for "nesting in struct" and the module scope
cases, then the static and non-static classification looks the
most suitable.
Piotrek
More information about the Digitalmars-d-learn
mailing list