Variant.type bug ?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 23 05:52:24 PDT 2016


On Wednesday, 23 March 2016 at 08:01:36 UTC, Voitech wrote:
> Hi Variant stores variant.type as not the "highest" in 
> hierarchy.

Yeah, it stores the static type. You can use it to get that then 
do a normal dynamic cast to test for a more derived type.



More information about the Digitalmars-d-learn mailing list