To help LDC/GDC

Simen Kjaeraas simen.kjaras at gmail.com
Tue Apr 9 09:54:49 PDT 2013


On 2013-04-09, 18:46, Manu wrote:

> What is an immutable function? Why is const not sufficient?

Immutable requires that the struct/class be immutable, const
may be called on mutable instances. Thus, the object may be
changed in a different thread while the const function executes.
Not so with immutable.

-- 
Simen


More information about the Digitalmars-d mailing list