Pointer to Object Questions

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Dec 30 15:28:56 PST 2006


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

Kirk McDonald schrieb am 2006-12-30:

<snip>

> Since classes are by reference, anyway, there's no good reason to throw 
> around pointers to objects.

There is at least one valid use case for pointers to objects:

#
# ClassType[IndexType] aa;
# //...
# ClassType* c = index in aa;
#

Thomas


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

iD8DBQFFlv+lLK5blCcjpWoRArMqAJwK3ylM4s/2PGsiHp38n1dKUIAKIgCcCig3
CU554YE1xrzlEAb1bycOqFM=
=vTmJ
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-learn mailing list