From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1427CBC6B for ; Thu, 22 Mar 2007 21:32:53 +0100 (CET) Received: from smtp.janestcapital.com (www.janestcapital.com [66.155.124.107]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2MKWq8N005430 for ; Thu, 22 Mar 2007 21:32:52 +0100 Received: from [172.25.131.105] [38.96.172.125] by janestcapital.com with ESMTP (SMTPD-9.10) id A7F301AC; Thu, 22 Mar 2007 16:32:51 -0400 Message-ID: <4602E7F2.3060804@gnu.org> Date: Thu, 22 Mar 2007 16:32:50 -0400 From: Sam Steingold User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: Nicolas barnier Cc: Caml list Subject: Re: Arg.spec and option types References: <4602990B.6030406@recherche.enac.fr> In-Reply-To: <4602990B.6030406@recherche.enac.fr> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4602E7F4.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; barnier:01 constructors:01 initialized:01 foo:01 wrote:01 workaround:01 behaviour:01 int:01 int:01 string:02 string:02 arg:03 arg:03 float:03 float:03 Nicolas barnier wrote: > > I think it would therefore be quite useful to add > Set_option_{string|int|float} > constructors which would expect {string|int|float} option ref values as > arguments (usually initialized with None). Do others think the same or use > some other workaround to obtain this behaviour ? It is nice to know that I am not the only one who is writing Arg.String (fun s -> foo := Some s) all the time. Sam.