const challenge

Joel C. Salomon joelcsalomon at gmail.com
Thu Jan 31 22:59:54 PST 2008


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

Janice Caron wrote:
> Once again, this problem arises because D has no way to express
> uniqueness. If we had such a means, then the const-correct prototype
> would be
> 
>     unique(char)[] niftyStringFunction(unique(char)[] outBuffer, string input)

Looks a lot like C’s proposed noalias to me; dmr’s problems with noalias
might not apply exactly to D, but I’d be cautious.

- --Joel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHosNqzLx4GzBL9dYRAiOgAJ93AkHzAJKfyuSA9ybFZygg8oBTtACg08x8
qjDDivlk8ex1i+YpkrOfSI0=
=equv
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list