From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr 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 E20F0BB9C for ; Wed, 23 Nov 2005 06:54:06 +0100 (CET) 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 jAN5s6Mu013423 for ; Wed, 23 Nov 2005 06:54:06 +0100 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 GAA29955 for ; Wed, 23 Nov 2005 06:54:06 +0100 (MET) Received: from yquem.inria.fr (yquem.inria.fr [128.93.8.37]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jAN5s5XX013420; Wed, 23 Nov 2005 06:54:05 +0100 Received: by yquem.inria.fr (Postfix, from userid 18041) id AA553BB9C; Wed, 23 Nov 2005 06:54:05 +0100 (CET) Date: Wed, 23 Nov 2005 06:54:05 +0100 To: Christophe Raffalli Cc: caml-list Subject: Re: [Caml-list] Request for complete pattern matching Message-ID: <20051123055405.GB2035@yquem.inria.fr> References: <43839F1A.2080909@univ-savoie.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43839F1A.2080909@univ-savoie.fr> User-Agent: Mutt/1.5.9i From: luc.maranget@inria.fr (Luc Maranget) X-Miltered: at nez-perce with ID 438403FE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 438403FD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 maranget:01 maranget:01 lazy:01 lazy:01 camlp:01 expr:01 expr:01 syntax:01 --luc:01 luc:01 luc:01 constructor:01 constructor:01 matched:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 > > - Lazy constructor and function can not be matched ... and this is ennoying I guess there must be a reason for not matching Lazy constructor, in fact I see no constructor in the Lazy module. Maybe I am missing something here. > > I saw a post recently about lazy constructor and I can not write the > camlp4 extension I want because of the second limitation ... > > It may be not clear what I mean by matching a function (looks impossible > ;-). I mean something like You bet. > > pattern <= expr expr expr is a pattern > > and a function f is matched by > > p <= e1 ... eN iff f e1 ... eN is matched by p > > (I do not care about the final syntax ...) I do not get the idea either, can you be a bit more specific ? I have more or less the feeling that match f with pattern <= expr expr expr -> bonga means match f expr expr expr with p -> bonga Thus I hardly seen your point. --Luc Maranget