From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 2FE81BCAE for ; Fri, 8 Jul 2005 18:58:39 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j68GwccB005236 for ; Fri, 8 Jul 2005 18:58:38 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA31695 for ; Fri, 8 Jul 2005 18:58:38 +0200 (MET DST) Received: from mail.physik.uni-muenchen.de (mail.physik.uni-muenchen.de [192.54.42.129]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j68GwblI005232 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 8 Jul 2005 18:58:38 +0200 Received: from localhost (unknown [127.0.0.1]) by mail.physik.uni-muenchen.de (Postfix) with ESMTP id 8529620018; Fri, 8 Jul 2005 18:58:37 +0200 (CEST) Received: from mail.physik.uni-muenchen.de ([127.0.0.1]) by localhost (mail.physik.uni-muenchen.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18247-01-50; Fri, 8 Jul 2005 18:58:30 +0200 (CEST) Received: from mailhost.cip.physik.uni-muenchen.de (kaiser.cip.physik.uni-muenchen.de [141.84.136.1]) by mail.physik.uni-muenchen.de (Postfix) with ESMTP id 988FB20014; Fri, 8 Jul 2005 18:58:30 +0200 (CEST) Received: from katrin.cip.physik.uni-muenchen.de (katrin.cip.physik.uni-muenchen.de [141.84.136.12]) by mailhost.cip.physik.uni-muenchen.de (Postfix) with ESMTP id CB2B526E89; Fri, 8 Jul 2005 18:58:29 +0200 (CEST) Received: by katrin.cip.physik.uni-muenchen.de (Postfix, from userid 3092) id A012416BBA; Fri, 8 Jul 2005 18:58:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by katrin.cip.physik.uni-muenchen.de (Postfix) with ESMTP id 9AEE022135; Fri, 8 Jul 2005 18:58:20 +0200 (CEST) Date: Fri, 8 Jul 2005 18:58:20 +0200 (CEST) From: Thomas Fischbacher To: Kenneth Knowles Cc: caml-list@inria.fr Subject: Re: [Caml-list] How to raise_with_arg() a tuple? In-Reply-To: <20050708162428.GA24033@tallman.kefka.frap.net> Message-ID: References: <17101.30588.827486.654309@karryall.dnsalias.org> <20050708162428.GA24033@tallman.kefka.frap.net> X-BOFH: Daemons did it MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: amavisd-new at physik.uni-muenchen.de X-Miltered: at nez-perce with ID 42CEB0BE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42CEB0BD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 flags:01 syntax:01 curried:01 constructors:01 haskell:01 2005,:98 kenneth:98 knowles:98 85%:98 cip:98 cip:98 lambda:01 lambda:01 wrote:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Fri, 8 Jul 2005, Kenneth Knowles wrote: > This exists, and is called camlp4. I'm not sure which, if any, of the tools > that operate on .ml files doesn't "support" it via easy command line flags. > > There is even a revised syntax shipped with camlp4 which has curried variant > constructors like Haskell. Unfortunately, there's a lot of stuff in there I > disagree with, like extra bracketing of many constructs. Many thanks for that tip! I really missed that so far - I knew about camlp4's existence, but just did not have an incentive to have a closer look. Well, now I have. > http://pauillac.inria.fr/caml/camlp4/manual/manual007.html I would say that I'd agree with ~85% of what's in there, so for me it's definitely an improvement. Thanks. -- regards, tf@cip.physik.uni-muenchen.de (o_ Thomas Fischbacher - http://www.cip.physik.uni-muenchen.de/~tf //\ (lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y) V_/_ (if (= x 0) y (g g (- x 1) (* x y)))) n 1)) (Debian GNU)