foreach (x; a .. b) and foreach_reverse (x; a .. b) should be disallowed
Christopher Wright
dhasenan at gmail.com
Mon May 18 04:09:05 PDT 2009
grauzone wrote:
> Look at this for example:
> > writefln("%s", is(typeof(rtzx) == char));
> This compiles even if rtzx doesn't exist. But you probably wanted to
> check the type of rtzx, not it if rtzx exists. If you mistyped rtzx, the
> compiler will never tell you.
You can do 'is(typeof(rtzx)) && is(typeof(rtzx) == char)', or wrap it in
a template.
More information about the Digitalmars-d
mailing list