static class vs. static struct

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 27 01:47:16 PST 2015


On Tue, 27 Jan 2015 09:40:08 +0000, Daniel Kozak wrote:

> import std.stdio;
> import std.conv;
> 
> struct S {
>      @disable this();
> }
> 
> final class C {
> }
> 
> void main() {
>      writeln(C.sizeof);
>      writeln(S.sizeof);
> }

blind guess: vmt with "toString()" from Object? ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150127/40b6ed3f/attachment.sig>


More information about the Digitalmars-d-learn mailing list