<div dir="ltr"><div><div><div>Hi All,<br></div><div><br></div><div>I have some questions regarding FPC's generics implementation, just out of curiosity.<br><br></div>The FPC wiki states that
the ppu file stores all the tokens for the generic classes. Browsing the source of compiler/symdef.pas (r31298) also gave me this impression. Does it mean that a recompilation occurs for every specialization?<br><br>There have been some ideas (again, regarding
the wiki) to store the parse tree instead of the source code (or
tokens) in the ppu. I guess that would made the specializations quicker. What were the reasons against it?<br><br></div><div>Disabling assignment compatibility of the separate specializations (with same parameter type) might reduce the number of specializations. Were there any specific reasons for enabling it in objpas mode?<br></div><div><br></div><div>Please CC me the answers, I'm not a list member!<br></div><div><br></div>Best,<br></div>Mátyás Jani<br></div>