From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 13B967F9BB for ; Wed, 2 Jul 2014 10:44:05 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=pra; client-ip=74.55.86.74; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=mailfrom; client-ip=74.55.86.74; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp.webfaction.com) identity=helo; client-ip=74.55.86.74; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="postmaster@smtp.webfaction.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0EAPPEs1NKN1ZKm2dsb2JhbABahgaBIcMuAYEiDwEBAQEBBgsLCRQohAQBBSNWEAsaAiYCAkcQBhuIOgSqDJsqF4ErjUEzB4J3NoEWBaFYF5A9 X-IPAS-Result: Ai0EAPPEs1NKN1ZKm2dsb2JhbABahgaBIcMuAYEiDwEBAQEBBgsLCRQohAQBBSNWEAsaAiYCAkcQBhuIOgSqDJsqF4ErjUEzB4J3NoEWBaFYF5A9 X-IronPort-AV: E=Sophos;i="5.01,587,1400018400"; d="scan'208";a="69843352" Received: from mail6.webfaction.com (HELO smtp.webfaction.com) ([74.55.86.74]) by mail3-smtp-sop.national.inria.fr with ESMTP; 02 Jul 2014 10:44:02 +0200 Received: from [172.20.10.2] (188.29.165.197.threembb.co.uk [188.29.165.197]) by smtp.webfaction.com (Postfix) with ESMTP id 05521227071C; Wed, 2 Jul 2014 08:43:29 +0000 (UTC) Date: Wed, 2 Jul 2014 09:43:13 +0100 From: =?utf-8?Q?Daniel_B=C3=BCnzli?= To: Nicolas Ratier Cc: caml-list@inria.fr Message-ID: <61DE677B8B2B47D8802464F092A13EC2@erratique.ch> In-Reply-To: <53B3C402.8070001@femto-st.fr> References: <53B3C402.8070001@femto-st.fr> X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [Caml-list] Case insensitive in type Le mercredi, 2 juillet 2014 =C3=A0 09:34, Nicolas Ratier a =C3=A9crit : > I would like the string of the Term constructor not to be case sensitive, > for example, all the following terms should be the same : [...]=20=20 > Is it possible ? The only way to do this is to make the type private and always construct te= rm values through a constructor which normalizes the strings.=20=20 type term =3D private Term of string * term list let term s args =3D Term ((String.lowercase s), args)=20=20 Best, Daniel