[article] Language Design Deal Breakers
Dicebot
m.strashun at gmail.com
Wed May 29 06:21:38 PDT 2013
On Wednesday, 29 May 2013 at 13:15:48 UTC, Dmitry Olshansky wrote:
> ...
Actually as I can see, at least part of Phobos uses void instead
of T.init, but, anyway, won't this break for types with proper
@disable this?
----------------------------------
template isInputRange(R)
{
enum bool isInputRange = is(typeof(
(inout int = 0)
{
R r = void; // error?
if (r.empty) {}
r.popFront();
auto h = r.front;
}));
}
More information about the Digitalmars-d
mailing list