STR:
1. open
http://forum.dlang.org/static-bundle/637528586548394375/dlang.org/js/dlang.js+js/dfeed.js
2. press reload (F5 or ctrl+R)
On Saturday, 25 February 2017 at 19:59:29 UTC, ikod wrote:
Hello,
I have a method for range:
struct Range {
immutable(ubyte[]) _buffer;
size_t _pos;
@property void popFront() pure @safe {
enforce(_pos < _buffer.length, "popFront from empty
buffer");
On Saturday, 25 February 2017 at 19:55:04 UTC, Timothee Cour
wrote:
Try dscanner --sloc although IMO --tokenCount should be the
most relevant
metric (only caveat is mixin strings with which one could cheat
to make
token count smaller).
TokenCount formatting invariant
On Feb 25, 2017 11:36 AM,
On Thursday, 26 January 2017 at 11:32:09 UTC, ZombineDev wrote:
Not sure if this is a bug in isInputRange or foreach, but they
should work consistently.
Copy/paste from primitives.d:
template isInputRange(R)
{
enum bool isInputRange = is(typeof(
(inout int = 0)
{
R r =
On Wednesday, 25 January 2017 at 16:15:49 UTC, Las wrote:
then I can do this:
void main() {
S s;
auto p =
p.popFront;
writeln(p.front);
}
But not this:
void main() {
S s;
auto p =
foreach(i; p)
writeln(i);
}
p.popFront
Also mentioned on OSNews: http://www.osnews.com/comments/29268