struct vs class benchmark (was Re: Give struct the status it deserves)

Thomas Kuehne thomas-dloop at kuehne.cn
Sun Apr 2 05:09:34 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bruno Medeiros schrieb am 2006-04-02:
> The best 
> that I could find was by looking at the assembly code, and that in the 
> class version a _d_newclass function is called instead of _d_new for the 
> struct version, yet does _d_newclass do more than _d_new other than just 
> initialize the pointers?

have a look at: src/phobos/internal/gc/gc.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFEL8wo3w+/yD4P9tIRAgSsAJ9pC8xp4D8N5+ykxPueNKw0nmm1OwCgvcs1
U2k6rgOjvcYbtgYUJwjUKWY=
=97Mb
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list