Strict @property syntax compliance.

This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
This commit is contained in:
David Nadlinger 2011-12-01 22:49:16 +01:00
parent 0eddab60b9
commit e312f9898b
33 changed files with 603 additions and 593 deletions

View file

@ -333,8 +333,8 @@ unittest
auto a = [ 1, 2, 3 ];
a.popFront();
assert(a == [ 2, 3 ]);
static assert(!__traits(compiles, popFront!(immutable int[])));
static assert(!__traits(compiles, popFront!(void[])));
static assert(!__traits(compiles, popFront!(immutable int[])()));
static assert(!__traits(compiles, popFront!(void[])()));
}
// Specialization for narrow strings. The necessity of
@ -1234,7 +1234,7 @@ ElementEncodingType!(ElementType!RoR)[] joinImpl(RoR, R)(RoR ror, R sep)
return result;
}
else
return copy(iter, appender!(typeof(return))).data;
return copy(iter, appender!(typeof(return))()).data;
}
ElementEncodingType!(ElementType!RoR)[] joinImpl(RoR, R)(RoR ror, R sep)
@ -1326,7 +1326,7 @@ ElementEncodingType!(ElementType!RoR)[] joinImpl(RoR)(RoR ror)
return cast(typeof(return)) result;
}
else
return copy(iter, appender!(typeof(return))).data;
return copy(iter, appender!(typeof(return))()).data;
}
ElementEncodingType!(ElementType!RoR)[] joinImpl(RoR)(RoR ror)
@ -2291,7 +2291,7 @@ struct SimpleSlice(T)
foreach (p; _b .. _e)
{
*p = anotherSlice.front;
anotherSlice.popFront;
anotherSlice.popFront();
}
}
}
@ -2437,7 +2437,7 @@ struct SimpleSliceLvalue(T)
foreach (p; _b .. _e)
{
*p = anotherSlice.front;
anotherSlice.popFront;
anotherSlice.popFront();
}
}
}