[fpc-pascal] Case statement for class introspection

Ryan Joseph genericptr at gmail.com
Mon Jan 17 08:44:00 CET 2022



> On Jan 17, 2022, at 1:55 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> 
> Question then is how you get the VMT address as a constant at compile time.
> 
> I'll need to get back to you with that. 
> 

I didn't test yet but I think what you're saying is that VMT writer would need to have generated this address in advance of doing tcasenode.pass_1, which could presumably get this address in some integer form. Is that basically what you're thinking is possible?

If it's a big problem I guess the question is if the if blocks are really that bad compared to alternative ( I would need to basically redo the entire thing also). 

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list