<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/37ee21d15661a558c82cc9e8b9ac551d"
  from="samsaga2 &lt;samsaga2@s...&gt;"
  author="samsaga2"
  date="2003-10-22T10:52:02"
  subject="Re: [Caml-list] OCaml wishlist -&gt; my wish"
  prev="2003/10/0387387ca1566a60c7eb714103fcafca"
  next="2003/10/b10283d8300b4f100899009b6735c9f9"
  prev-in-thread="2003/10/2c38ef89fcee5bfcb051460d8e0d485f"
  next-in-thread="2003/10/b10283d8300b4f100899009b6735c9f9"
  prev-thread="2003/10/08bd0ecfdca5cc2e49c8e01b5c9d4507"
  next-thread="2003/10/865d716a1499fe5a9cc13f60e84a8a3e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Re: [Caml-list] OCaml wishlist">
<msg 
  url="2003/10/36ad1eb7cafe994a34e3761a559f87ee"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-10-21T22:39:22"
  subject="Re: [Caml-list] OCaml wishlist">
<msg 
  url="2003/10/2c38ef89fcee5bfcb051460d8e0d485f"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-10-22T01:14:47"
  subject="Re: [Caml-list] OCaml wishlist">
<msg 
  url="2003/10/37ee21d15661a558c82cc9e8b9ac551d"
  from="samsaga2 &lt;samsaga2@s...&gt;"
  author="samsaga2"
  date="2003-10-22T10:52:02"
  subject="Re: [Caml-list] OCaml wishlist -&gt; my wish">
</msg>
<msg 
  url="2003/10/b10283d8300b4f100899009b6735c9f9"
  from="brogoff@s..."
  author="brogoff@s..."
  date="2003-10-22T13:21:30"
  subject="Re: [Caml-list] OCaml wishlist">
</msg>
<msg 
  url="2003/10/34f3190c6d99486609f1bcf1a25eb523"
  from="Eray Ozkural &lt;exa@k...&gt;"
  author="Eray Ozkural"
  date="2003-10-23T00:32:15"
  subject="Re: [Caml-list] OCaml wishlist">
</msg>
<msg 
  url="2003/10/524383af3fd063e600f8875e23deb14b"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-10-23T16:55:55"
  subject="Re: [Caml-list] OCaml wishlist">
</msg>
</msg>
</msg>
</thread>

<contents>
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

</contents>

</message>

