On Sunday, 7 October 2012 at 19:42:18 UTC, Ali Çehreli wrote:
What version of Phobos are you using? The source code of Phobos
that comes with dmd 2.060 does not have the definition that you
have shown.
In any case, according to the docs, it is SList that allows
setting the front element, not DList:
import std.container;
void main()
{
auto list = SList!int([1,2,3,4,5]);
list.front = 3;
}
Ali
Ah you're right, I was looking at my git head version, which I
don't use when I build dmd head. So the functionality is there
already. Thanks!