Recent

Author Topic: Obtaining COMPILE time TYPE info to use in creatnig anothe variable!  (Read 6615 times)

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: Obtaining COMPILE time TYPE info to use in creatnig anothe variable!
« Reply #15 on: March 15, 2018, 01:11:48 pm »
RTTI/Reflection. Especially useful for serializing classes. And that also works well with Variants.

But normally, wanting to create a var of "some random type" means that your class hierarchy is flaky.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Obtaining COMPILE time TYPE info to use in creatnig anothe variable!
« Reply #16 on: March 15, 2018, 01:22:35 pm »
RTTI/Reflection. Especially useful for serializing classes. And that also works well with Variants.

But normally, wanting to create a var of "some random type" means that your class hierarchy is flaky.
Indeed, but all of those are basically run-time information, not compile time information perse.
And variants should be forbidden in a compiled language. Use Python instead.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018