[Issue 13084] ModuleInfo.opApply delegate expects immutable parameter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 13 03:09:11 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13084

--- Comment #14 from Jacob Carlborg <doob at me.com> ---
(In reply to Kenji Hara from comment #13)

> All D programmers would assume that unqualified type name T is a mutable
> type, and const(T) is const, immutable(T) is immutable.
> 
> But, the proposed idea will break the assumption - all ModuleInfo,
> const(ModuleInfo), immutable(ModuleInfo) will be same immutable. it's very
> confusing situation.

Hmm, that's a good point.

--


More information about the Digitalmars-d-bugs mailing list