Persistent list

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 16 14:05:57 PST 2015


On Monday, 16 November 2015 at 21:36:41 UTC, Steven Schveighoffer 
wrote:
> I just did the naive thing and slapped inout on your functions. 
> This is what I got:
>
> persistent_list2.d(146): Error: cannot implicitly convert 
> expression (( List!(immutable(int)) __slList1681 = List(null, 
> null);
>  , __slList1681).this(n, this.allocator())) of type 
> List!(immutable(int)) to inout(List!(immutable(int)))
>
> WTF!

Wow is that hideous. I don't recall ever seeing error messages 
that obtuse.

> We can and should fix this. I'll file an issue if none has been 
> filed.

Please do.

- Jonathan M Davis


More information about the Digitalmars-d mailing list