From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA18223; Tue, 5 Jun 2001 20:15:55 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 UAA18462 for ; Tue, 5 Jun 2001 20:15:54 +0200 (MET DST) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f55IFmn07708; Tue, 5 Jun 2001 20:15:49 +0200 (MET DST) Received: from checkerlap.d6.com ([64.163.212.163]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0GEG00ECQYQ5PA@mta5.snfc21.pbi.net>; Tue, 5 Jun 2001 11:15:42 -0700 (PDT) Date: Tue, 05 Jun 2001 11:17:53 -0700 From: Chris Hecker Subject: Re: [Caml-list] Ocaml interface to ctype.h functions In-reply-to: <20010605182909.A16268@pauillac.inria.fr> X-Sender: def6@shell16.ba.best.com To: Xavier Leroy , caml-list@inria.fr Cc: shawnw@speakeasy.org Message-id: <4.3.2.7.2.20010605111421.027d9870@shell16.ba.best.com> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Content-type: text/plain; charset="us-ascii" References: <20010601232433.A22189@speakeasy.org> <20010601232433.A22189@speakeasy.org> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >It's mostly a matter of knowing what we want these classification >functions to do. Meanwhile, it might be easier to define your own >isalpha, etc, predicates; at least you get to choose the encoding! >Besides, it's really easy using pattern-matching, e.g. for ASCII: But, we've got someone willing to do the work for everybody, so it seems a shame not to use it just because we can't figure out what the 100% Right Thing is. How about putting a nested ASCII (or ISO_Latin_1, or whatever) module inside Char, and putting the ascii specific functions in there? That way it's clear what they're doing and what they support, and we still get to use the fruits of his free labor. ;) And then you can add a Unicode one, when we find somebody to do that, etc. Chris ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr