[Issue 13084] ModuleInfo.opApply delegate expects immutable parameter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 17 16:52:28 PDT 2014


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

Dicebot <public at dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public at dicebot.lv

--- Comment #23 from Dicebot <public at dicebot.lv> ---
> All D programmers would assume that unqualified type name T is a mutable type, and const(T) is const, immutable(T) is immutable.

What? Sounds like total nonsense. I use aliases of qualified types all the
time, it is a very useful tool for enforcing certain qualified semantics.
Programmers that expect that must have never read the docs.

I think it is a reasonable solution.

--


More information about the Digitalmars-d-bugs mailing list