[fpc-pascal] Constants in generics
florian at freepascal.org
Sat Nov 10 13:22:51 CET 2018
Am 10.11.2018 um 13:20 schrieb Ryan Joseph:
>>>> - the compiler contains already a type called tgenericdef
>>> I think I changed that name in the last commit. Btw I made all those types because I didn’t want to populate the main types like ttypesym with extra bytes but I don’t know what’s best practice in the codebase.
>> Priority is:
>> 1. maintainability
>> 2. portability
>> 3. speed
>> Keep also ppu storing/loading in mind.
> Thus far on the compiler I haven’t encountered PPU's at all so I just assumed they were part of the code generator and I didn’t need to worry about them. How are they relevant here? Honestly I barely know what the PPU’s are and how the compiler uses them.
If you "export" a generic taking a const from a unit, this info has to be stored in the ppu.
More information about the fpc-pascal