Typeinfo

Rikki Cattermole via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 2 17:52:01 PDT 2015


On 3/04/2015 1:21 p.m., Andrei Alexandrescu wrote:
> Hey folks, is there any way to figure out whether a type is immutable or
> shared given its typeinfo? I see there's only the flags() method that
> doesn't tell that. I'm thinking we'd do good to extend that.
>
> This is needed for allocators. I'm thinking an allocator might be
> interested at creation time to use different allocation strategies for
> qualified types, especially shared ones.
>
>
> Thanks,
>
> Andrei

Small question, how exactly are you getting the TypeInfo without knowing 
its exact type at CT?


More information about the Digitalmars-d mailing list