shared and getParameterStorageClasses bug?
Meta
jared771 at gmail.com
Sun Aug 23 04:29:19 UTC 2020
On Saturday, 22 August 2020 at 18:34:21 UTC, Jean-Louis Leroy
wrote:
> void foo(lazy shared Object);
> pragma(msg, __traits(getParameterStorageClasses, foo, 0)); //
> tuple("lazy")
>
> Shouldn't this return a tuple("lazy", "shared)? Given that
> `shared` is documented as a parameter storage class?
I'm not sure why the documentation says that, but I believe
shared is considered a "type constructor", not a storage class.
It's in the same class as const, immutable, etc.
More information about the Digitalmars-d
mailing list