Recent

Author Topic: generic TList not working with Enumerated type with constant assignment  (Read 1472 times)

PascalDragon

  • Hero Member
  • *****
  • Posts: 2959
  • Compiler Developer
Re: generic TList not working with Enumerated type with constant assignment
« Reply #15 on: March 27, 2021, 10:46:58 am »
The question is more why the generics.collections of FPC needs rtti, and delphi not.

Delphi's Generics.Collections uses RTTI as well as only this way it can handle e.g. records without operator overloads unlike TFPGList<>. It's just that in Delphi there is a difference in behavior regarding TypeInfo if used on a generic parameter that is a enum with explicit values compared to a non-generic type. This is now fixed in 49064 as well.

avk

  • Sr. Member
  • ****
  • Posts: 409
    • my self-education project
Re: generic TList not working with Enumerated type with constant assignment
« Reply #16 on: March 27, 2021, 04:25:09 pm »
Nice done!

 

TinyPortal © 2005-2018