[fpc-pascal] re: thanks for major signal handling fix
Marco van de Voort
marcov at stack.nl
Wed May 20 22:23:03 CEST 2009
In our previous episode, Micha Nelissen said:
> Jonas Maebe wrote:
> > On 20 May 2009, at 22:01, Jonas Maebe wrote:
> >> The problem you have right now is that the program and each of your
> >> libraries each contain their own copy of the exception class, and
> >> therefore do not recognise (Pascal) exceptions raised by any of the
> >> others.
> >
> > Well, that and the fact that moreover each library/program contains its
> > own exception stack rather than a single shared one (although that could
>
> Aren't both problems solved by using the same RTL binary code (in
> library form)?
That is what the basis of packages is more or less. All code (including VMTs
etc) only existing once, and a initialization order that matches the
requirements of the unit initialization order.
IOW packages is just an automatable (for the compiler) of such system. More
like how you compile a mainprogram with the compiler in one go instead of
sorting the different .o's and passing cmds to the linker.
More information about the fpc-pascal
mailing list