[Issue 13084] ModuleInfo.opApply delegate expects immutable parameter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jul 12 13:19:54 PDT 2014


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

--- Comment #8 from Jacob Carlborg <doob at me.com> ---
(In reply to Walter Bright from comment #7)

> How? (I know it will break people modifying ModuleInfo at runtime, but
> anything else?)

If I understand you correctly the current ModuleInfo would be renamed to
_ModuleInfo and a new immutable alias would be added, named ModuleInfo?

The ModuleInfo I have declared would be immutable? That could work. I will work
for the function where I found the problem but it returns the module info and I
have not looked yet how the returned value is used.

--


More information about the Digitalmars-d-bugs mailing list