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 MAA22748; Fri, 27 Dec 2002 12:24:12 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA23217 for caml-list@pauillac.inria.fr; Fri, 27 Dec 2002 12:24:11 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA23274 for ; Fri, 27 Dec 2002 12:13:55 +0100 (MET) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gBRBDsH05270 for ; Fri, 27 Dec 2002 12:13:54 +0100 (MET) Received: from univ-savoie.fr (grenoble-1-a7-62-147-74-187.dial.proxad.net [62.147.74.187]) by postfix3-2.free.fr (Postfix) with ESMTP id 58424C095; Fri, 27 Dec 2002 12:13:53 +0100 (CET) Message-ID: <3E0C43FE.7030200@univ-savoie.fr> Date: Fri, 27 Dec 2002 12:13:50 +0000 From: Christophe Raffalli Organization: =?ISO-8859-1?Q?Universit=E9_de_Savoie?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jacques Garrigue Cc: caml-list@inria.fr Subject: [Caml-list] about optionnal argument ? References: <20021227181837A.garrigue@kurims.kyoto-u.ac.jp> X-Enigmail-Version: 0.65.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig142BA59B03F830C33BA34117" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig142BA59B03F830C33BA34117 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit I wonder why optionnal argument are implemented through the option type instead of giving a defauklt value ? Obviously the type should carry the default value which should be a closed constant (like None, 0, 0.0, [1;2;3], etc ...) but this would preserve the possibility of using optionnal arguments and unboxed int or float arguments and it will save the None/Some test ! -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature --------------------------------------------- --------------enig142BA59B03F830C33BA34117 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+DEP+SQDyWB/+xBwRAslIAJ9EBUlGmks+zWJf8qGXzFfVVjdB/QCfayTv bFIGBLSSXNUR9bfNqASgz+c= =tPfi -----END PGP SIGNATURE----- --------------enig142BA59B03F830C33BA34117-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners