search of a workaround

monarch_dodra monarchdodra at gmail.com
Sun Feb 10 23:16:27 PST 2013


On Sunday, 10 February 2013 at 14:41:04 UTC, Namespace wrote:
> On Sunday, 10 February 2013 at 08:38:23 UTC, monarch_dodra 
> wrote:
>> On Saturday, 9 February 2013 at 22:14:45 UTC, Namespace wrote:
>>> Why isn't there 'const' in ParameterStorageClass?
>>> How could I detect that my Parameter storage class is 'in'?
>>
>> It's an ambiguity in the term "StorageClass" in D, which is 
>> different from "TypeQualifier". Const is part of the type. 
>> "StorageClass" means modifiers when you pass to a function.
>
> Parameter storage classes are in, out, ref, lazy, const, 
> immutable, shared, inout or scope.
> http://dlang.org/function.html

Hum. The bug report is here:
http://d.puremagic.com/issues/show_bug.cgi?id=8695
I got confused by Kenji's explanation.

Still, I find it strange that "const, immutable and shared" are 
part of the storage class. I figured they were (they are) just 
part of the plain type.


More information about the Digitalmars-d-learn mailing list