The empty statement ";" - when is it useful?

Adam D. Ruppe destructionator at gmail.com
Wed Jul 29 08:21:31 PDT 2009


On Wed, Jul 29, 2009 at 11:00:13AM -0400, Arthur Lloyd wrote:
> No, that looks quite good. Is the tuple() a D2 feature? D1/Tango doesn't seem to have it? Why not even go so far as to make the tuple keyword completely optional?

It is part of phobos 2, in std.typecons. (so you'd actually need to stick

import std.typecons;

at the top of the file to get that to compile.)


Since it is a library solution, there is no actual keyword here, nor can
it do the length thing you wanted. But, it does cover the other case quite
well, without needing to change the language at all.


-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list