February 10, 2013 Re: search of a workaround | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | Improved version which matches immutable and const correct: http://dpaste.1azy.net/597affd2 |
February 11, 2013 Re: search of a workaround | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | 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. |
Copyright © 1999-2021 by the D Language Foundation