Forum > General
[NOT Solved] specialize TFPGObjectList<T>
BrunoK:
--- Quote from: ASerge on July 04, 2024, 03:39:01 am ---This is a bug. The inherited Create is not called, which sets the ItemSize to 8 bytes (TFPSList.Create) and it remains zero. As a result, the built-in FList storage is always nil and any attempts to copy to it are unsuccessful.
--- End quote ---
I wrote some test program. The different behavior of inherited; and inherited create; seems no to occur for non TFPGObjectList classes that behave as expected.
jamie:
if it's only generics, especially this one. I would be willing to be it may have something to do with the message I saw in the log window about "Inline Inherited not yet supported"
Just a hunch. Would be interesting to see the end results.
:o
BrunoK:
--- Quote from: jamie on July 04, 2024, 12:54:17 pm ---if it's only generics, especially this one. I would be willing to be it may have something to do with the message I saw in the log window about "Inline Inherited not yet supported"
Just a hunch. Would be interesting to see the end results.
:o
--- End quote ---
I don't think Inline Inherited for the constructor will ever come. Apart from what you see in your constructor code, the code generated by the compiler is quite long including a Try Except block.
Big enough be not very useful to inline speed wise, and regarding the inflation of code size.
Thaddy:
@BrunaK,
You did not even pay attention, did you, and I am right.
BrunoK:
--- Quote from: Thaddy on July 04, 2024, 01:59:05 pm ---@BrunaK,
You did not even pay attention, did you, and I am right.
--- End quote ---
Are you a ChatGPT generated forum participant ?
Navigation
[0] Message Index
[#] Next page
[*] Previous page