[Caml-list] a syntax error that I don't get

2010-11-18 Thread Philippe Strauss
Hello caml'ers This one is short, I'm writting a signal handler: 205: let sig_exit () = 206:Unix.kill !chpid Sys.sigterm ; 207:match (Unix.waitpid [] !chpid) with 208:| pid, Unix.WSIGNALED (Sys.sigterm) -> log `LOG_NOTICE "child terminated by parent" 209:| pid, pstat -> log `LOG

Re: [Caml-list] a syntax error that I don't get

2010-11-18 Thread bluestorm
In pattern position you must write patterns, not expressions; this is a different syntaxic class that, in particular, doesn't have any Module.foo syntax. Writing bound variable in pattern position and hoping that it will do an equality test is a classic mistake. Even if you did "open Sys;;" then ma