[Issue 13084] ModuleInfo.opApply delegate expects immutable parameter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 21 14:21:47 PDT 2014


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #30 from Martin Nowak <code at dawg.eu> ---
(In reply to Dicebot from comment #26)
> On actual topic: is there any reason why ModuleInfo itself needs to be
> immutable and marking all its data members is not enough? That should still
> make all the the options from PR #790 valid or am I missing something?

Well, without breaking the type system, the runtime only has access to an array
of immutable pointers to ModuleInfos.

--


More information about the Digitalmars-d-bugs mailing list