T[new]
div0
div0 at users.sourceforge.net
Mon Aug 10 12:36:02 PDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
bearophile wrote:
> Walter Bright:
>
> I like this general proposal, it sounds like something that can improve D a little. There are many other things that have to be improved in D, but baby steps are enough to go somewhere :-)
>
>> Slices will retain the old:
>> T[] slice;
>> syntax. Resizeable arrays will be declared as:
>> T[new] array;
>
> Such syntaxes have to be chosen wisely. I don't fully understand that syntax. And maybe I don't fully like it.
> I think the default (simpler) syntax has to be the most flexible and safer construct, that is resizable arrays. Slices can be seen as an optimization, so they can have a bit longer syntax.
>
<snip>
Ya, not a nice syntax.
how about T[!static] ?! ;)
- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFKgHaiT9LetA9XoXwRAoBDAJ9WAHlAjkW7TXRUWqCz80N8m4WbwACfTCfP
9MnZfV5pifUKwNC3c1HgySM=
=J6pq
-----END PGP SIGNATURE-----
More information about the Digitalmars-d
mailing list