eating inout dogfood
Steven Schveighoffer
schveiguy at yahoo.com
Fri Oct 14 06:26:15 PDT 2011
On Fri, 14 Oct 2011 09:02:04 -0400, Kagamin <spam at here.lot> wrote:
> Steven Schveighoffer Wrote:
>
>> This won't solve the problem. I need inout to be on V, not on the
>> cursor. Essentially, I need cursor to be tail-inout.
>
> Since const is transitive, constness of cursor eventually propagates to
> V.
I think you misunderstand the problem. I need constness to be applied to
the V, but *NOT* to the cursor. If constness is applied to the cursor,
it's not iterable (i.e. popFront does not work).
-Steve
More information about the Digitalmars-d
mailing list