How to overload new operator for all classes?

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Aug 5 23:35:25 PDT 2006


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

david schrieb am 2006-08-06:
> I know global operator overload is not supported in D, but I hope new  
> could be an exception.
> I want to write some kernel like program in D

Simply add the operator to the Object class in

src/phobos/internal/object.d

Thomas


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

iD8DBQFE1ZsCLK5blCcjpWoRAo1aAJwIqfbIXXaPOceaczTFN1K3cflCwACdFmFa
YE22zhE/7sZi4OOxymtxQTQ=
=Iwzp
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-learn mailing list