To help LDC/GDC

Walter Bright newshound2 at digitalmars.com
Wed Apr 10 11:33:24 PDT 2013


On 4/9/2013 7:12 AM, Simen Kjærås wrote:
> const is not sufficient, as someone else might have a mutable
> reference. immutable is needed.

const is sufficient for strongly pure, because another reference is not 
available to the function body, and so the function cannot mutate it.


More information about the Digitalmars-d mailing list