Formal review of std.buffer.scopebuffer

Walter Bright newshound2 at digitalmars.com
Mon Mar 17 13:06:49 PDT 2014


On 3/17/2014 12:03 PM, monarch_dodra wrote:
> So yes, it compiles, but the implementation is still wrong. Your implementation
> allows assigning an immutable(int)* into an int*.
>
> Unless there is a performance specific reason for using the const, I don't see
> why we aren't removing it.

The reason was I was alternately calling put() with mutable char[] and immutable 
strings. I should look and see if there's a better way.


More information about the Digitalmars-d mailing list