Re: ocamlsdl, exceptions not registered
Le lundi 18 juin 2012 21:07:02, Stéphane Glondu a écrit :
> Le 18/06/2012 20:17, Florent Monnier a écrit :
> > Even if it's an ocaml bug, don't you think that we should try to do
> > something? [...]
> > Please tell-me what you think.
>
> I don't consider this a bug, merely an unfortunate (and "well known" :)
> behaviour.
>
> IMHO, the proper fix is to put the calls to Callback.register_exception
> (and other initialization stuff) in a module that is not included in a
> .cma/.cmxa (for example, sdlInit.{cmo,cmx}, like in lablgtk2). Another
> workaround is to use the -linkall option.
For the sdlInit solution, would you make as many sdlMyModInit files that there
are modules ?
--
Reply to: