September 03, 2015
How about range snippets? I've just added a simple standard range to my snippets.lua file:

range = [[private
{
	R r;
}

this(R r)
{
	this.r = r;
}

@property bool empty()
{
	return r.length == 0;
}

@property auto front()
{
	return r[0];
}

@property void popFront()
{
	r = r[1..$];
}

Of course there can be all the different kinds of ranges (rangei = infinite, rangef = forward range etc.).
September 06, 2015
On Wednesday, 2 September 2015 at 09:07:24 UTC, Chris wrote:
> Thanks, great stuff! One thing you say it's been tested with 2.067.1, but for this version it gives the following error message:
>
> containers/experimental_allocator/src/std/experimental/allocator/common.d(337): Error: module meta is in file 'std/meta.d' which cannot be read
> import path[0] = containers/src
> import path[1] = msgpack-d/src
> import path[2] = libdparse/src
> import path[3] = dsymbol/src
> import path[4] = containers/experimental_allocator/src
>
> I had to use 2.068.0 to compile it.

btw this is also the reason why Arch package is still not updated - waiting until will build with latest LDC
September 07, 2015
On Sun, 06 Sep 2015 21:00:11 +0000
Dicebot via Digitalmars-d-announce
<digitalmars-d-announce@puremagic.com> wrote:

> On Wednesday, 2 September 2015 at 09:07:24 UTC, Chris wrote:
> > Thanks, great stuff! One thing you say it's been tested with 2.067.1, but for this version it gives the following error message:
> >
> > containers/experimental_allocator/src/std/experimental/allocator/common.d(337):
> > Error: module meta is in file 'std/meta.d' which cannot be read
> > import path[0] = containers/src import path[1] = msgpack-d/src
> > import path[2] = libdparse/src
> > import path[3] = dsymbol/src
> > import path[4] = containers/experimental_allocator/src
> >
> > I had to use 2.068.0 to compile it.
> 
> btw this is also the reason why Arch package is still not updated - waiting until will build with latest LDC

Ohh, that makes sense :)
1 2
Next ›   Last »