[Issue 13084] ModuleInfo.opApply delegate expects immutable parameter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 13 01:51:28 PDT 2014


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

--- Comment #11 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Walter Bright from comment #9)
> (In reply to Jacob Carlborg from comment #8)
> > If I understand you correctly the current ModuleInfo would be renamed to
> > _ModuleInfo and a new immutable alias would be added, named ModuleInfo?
> 
> Yes.
> 
> > The ModuleInfo I have declared would be immutable?
> 
> Yes.
> 
> > 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.

I don't think it's good idea. It would introduce confusing than benefits.

--


More information about the Digitalmars-d-bugs mailing list