Persistent list

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 17 04:32:03 PST 2015


On 11/17/2015 04:50 AM, Dicebot wrote:
> ...
> https://gist.github.com/mihails-strasuns-sociomantic/1d7529eef723b1132564

Again, this idiom does not do anything:

static assert(
     !is(typeof(this) == immutable),
     "PersistentList itself must be mutable for allocation / RC purposes"
);

The condition is always true.

Anyway, any design that does not allow e.g. nested lists is inadequate IMO.


More information about the Digitalmars-d mailing list