DMD 0.165 release
Tom S
h3r3tic at remove.mat.uni.torun.pl
Mon Aug 21 00:40:52 PDT 2006
The supplied example:
void foo()
{
int v = 2;
cond
(
scase(v == 1, writefln("it is 1")),
scase(v == 2, writefln("it is 2")),
scase(v == 3, writefln("it is 3")),
scase(true, writefln("it is the default"))
);
}
Gives errors: 'voids have no value'. It works when writefln is changed
to printf, as it returns an int... It would be cool if voids were also
allowed to be lazy.
--
Tomasz Stachowiak
More information about the Digitalmars-d-announce
mailing list