April 08, 2012 Re: readonly storage class | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjamin Thaut | On Sun, Apr 08, 2012 at 06:09:48PM +0200, Benjamin Thaut wrote: [...] > Thanks, then this is a misunderstanding on my side, and this topic is irrelevant. But what about calling const methods on immutable objects? [...] Basically, the way const/immutable works is: const / \ unqualified immutable Both unqualified and immutable implicitly convert to const, but not the other way around (except in certain special cases, like copying ints). T -- People walk. Computers run. |
Copyright © 1999-2021 by the D Language Foundation