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 MAA30527; Wed, 22 Oct 2003 12:52:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 MAA26264 for ; Wed, 22 Oct 2003 12:52:01 +0200 (MET DST) Received: from server2.canelatools.com ([212.170.133.115]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h9MAq0117204 for ; Wed, 22 Oct 2003 12:52:00 +0200 (MET DST) Received: from stratos-ad.com (unknown [169.254.1.100]) by server2.canelatools.com (Postfix) with ESMTP id 85E921CC9 for ; Wed, 22 Oct 2003 12:51:59 +0200 (CEST) Message-ID: <3F966151.7080306@stratos-ad.com> Date: Wed, 22 Oct 2003 12:52:01 +0200 From: samsaga2 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030827 X-Accept-Language: es, en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] OCaml wishlist -> my wish References: <20031021223456.GA12195@redhat.com> <20031022101438T.garrigue@kurims.kyoto-u.ac.jp> In-Reply-To: <20031022101438T.garrigue@kurims.kyoto-u.ac.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 wishlist:01 printf:01 printf:01 ocaml:01 float:02 float:02 let:04 let:04 vector:04 functions:05 output:05 type:07 wish:89 wish:89 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk It could be well that: let hello name = Printf.printf "Hello %s\n" name in let nooverride hello number = Printf.printf "You're only a number %d!!\n" number in hello "samsaga2"; hello 666 And the output will be: Hello samsaga2 You're only a number 666!! nooverride label it's optional Then functions as (+) and (+.) could be: let (+) number1 number2 = number1 + number2 in let nooverride (+) number1 number2 = number1 +. number2 even type vector3 = { x : float; y : float; z : float } let nooverride (+) v1 v2 = { x = v1.x + v2.x; y = v1.y + v2.y; z = v1.z + v2.z } But... it's only a wish :-P ------------------- 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