Am Sa., 10. Nov. 2018, 14:47 hat Ryan Joseph <r...@thealchemistguild.com> geschrieben:
> > > > On Nov 10, 2018, at 7:22 PM, Florian Klämpfl <flor...@freepascal.org> > wrote: > > > > If you "export" a generic taking a const from a unit, this info has to > be stored in the ppu. > > Can you show a test case I could use to see where this is triggered in the > compiler? I don’t even know where to begin looking. > The important part are the ppuwrite and ppuload methods that are provided by tstoreddef, tstoredsym and tstoredsymtable and overridden by most of their descendants. E.g. tstoreddef itself is also dealing with the generic parameters. And for a test: declare the generic in one unit, specialize it in another and compile twice. Usually things go boom if you messed up something. By the way: When adding/changing data that is written to the PPU increase the PPUVersion constant in the ppu.pas unit (there is no backwards compatibility for PPUs) and also adjust the ppudump utility in compiler/utils/ppudump. Regards, Sven >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal