Postblit bug

via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 20 23:34:22 PDT 2014


On Tuesday, 21 October 2014 at 01:50:55 UTC, H. S. Teoh via 
Digitalmars-d wrote:
> 	/* Note: this is hypothetical syntax */
> 	tail_const(Wrapper!T) x;
>
> gets translated to:
>
> 	Wrapper!(const(T)) x;

Please note that an important reason for using const is 
multi-threading where you may want to accept multiple readers and 
one writer. So IMO non-const parts of an object should stay on a 
different cache lines from the const parts…


More information about the Digitalmars-d mailing list