Ryan Joseph via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am
Mo., 17. Jan. 2022, 08:53:

>
>
> > On Jan 17, 2022, at 1:55 PM, Sven Barth <pascaldra...@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?
>

The VMT writer already does that, cause the VMT pointer is required for
each constructor call.


> 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).
>

That is of course the question.

Regards,
Sven

>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to