Re: Uq_engines.Receiver_attn
Guillaume Yziquel <[email protected]> Fri, 21 Aug 2009 18:09:35 +0200
| Newsgroups | gmane.comp.lang.ocaml.lib.net.devel |
|---|---|
| Message-ID | <[email protected]> |
Gerd Stolpmann a écrit : > Am Mittwoch, den 19.08.2009, 23:36 +0200 schrieb Guillaume Yziquel: > >> That means I cannot pattern-match for this exception since it is unknown >> to the OCaml compiler, since it's not in the .mli file. >> >> This is a (mild) pain. > > It is assumed that handlers reject unknown events, hence there is no > need to catch Receiver_attn. Or do you have a use case? > > Gerd I've made a workaround for my specific needs. But this means that you cannot make some code wrapping both a receiver and an evolved timeout mechanism in the same unixqueue. OK, you can, but I cannot give to the end user an interface without this Uq_engines.Receiver_attn exception happening, because I cannot pattern-match for it beforehand. Or I need to rewrite a specific receiver engine, which is bothersome in the sense that i cannot reuse this part of your code. Guillaume. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ocamlnet-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel