samedi 11 juillet 2015

Is there `is` functionality for the underlying types held by `TAny`?

I can access the fields of an object at runtime using TAny and I know that there's .kind, which will give me the correct TAnyKind but is there a method that will let me query specific user-defined types or concepts like the is operator does?

Like...

my_any is FooObject

or...

my_any is BarConcept

Or is there something else that would be better to use than TAny in this case?





Aucun commentaire:

Enregistrer un commentaire