<?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/07/da08ccf0eadd794f5980a4f8a044d49e"
  from="Vasile Rotaru &lt;vrotaru@s...&gt;"
  author="Vasile Rotaru"
  date="2003-07-05T15:53:36"
  subject="Re: [Caml-list] subtyping, polymorphism, higher order types....."
  prev="2003/07/1ebeeeaf30083f23aab24519296fd54e"
  next="2003/07/6d54ebe42cd1491a5c32cf6e278324db"
  prev-in-thread="2003/07/0c7727744a42d1a2c9eeb08c4df40728"
  prev-thread="2003/07/9d5c44985ef4846fa1879e4f91dc551f"
  next-thread="2003/07/c8147b1a3fde487932256f4013f9c14f"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] subtyping, polymorphism, higher order types.....">
<msg 
  url="2003/07/49ed1832a167d71344f550f25717a45f"
  from="Shaddin Doghmi &lt;shaddin@m...&gt;"
  author="Shaddin Doghmi"
  date="2003-07-03T14:33:27"
  subject="[Caml-list] subtyping, polymorphism, higher order types.....">
<msg 
  url="2003/07/0235d8bf220e9fe63e99b346ae379d7b"
  from="brogoff@s..."
  author="brogoff@s..."
  date="2003-07-03T16:55:32"
  subject="Re: [Caml-list] subtyping, polymorphism, higher order types.....">
</msg>
<msg 
  url="2003/07/c6d81119241d5306bafb0f9bc21d61e9"
  from="Daniel Weil &lt;daniel.weil@a...&gt;"
  author="Daniel Weil"
  date="2003-07-04T06:43:23"
  subject="Re: [Caml-list] subtyping, polymorphism, higher order types.....">
</msg>
<msg 
  url="2003/07/9265629f02a5161f666b1798bc5cc5e1"
  from="Vasile Rotaru &lt;vrotaru@s...&gt;"
  author="Vasile Rotaru"
  date="2003-07-04T21:31:54"
  subject="Re: [Caml-list] subtyping, polymorphism, higher order types.....">
<msg 
  url="2003/07/6fb9d2897cba518cab99e18cea396c7a"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-07-05T02:21:17"
  subject="Re: [Caml-list] subtyping, polymorphism, higher order types.....">
<msg 
  url="2003/07/0c7727744a42d1a2c9eeb08c4df40728"
  from="Fernando Alegre &lt;fernando@c...&gt;"
  author="Fernando Alegre"
  date="2003-07-05T07:46:55"
  subject="Re: [Caml-list] subtyping, polymorphism, higher order types.....">
</msg>
<msg 
  url="2003/07/da08ccf0eadd794f5980a4f8a044d49e"
  from="Vasile Rotaru &lt;vrotaru@s...&gt;"
  author="Vasile Rotaru"
  date="2003-07-05T15:53:36"
  subject="Re: [Caml-list] subtyping, polymorphism, higher order types.....">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Sat, 05 Jul 2003 11:21:26 +0900
Jacques Garrigue &lt;garrigue@kurims.kyoto-u.ac.jp&gt; wrote:

&gt; &gt; 
&gt; &gt;     type point = int * int * _ ;;
&gt; &gt; 
&gt; &gt; where the underscore stands for any sequences of types. Colour,
&gt; &gt; taste, strangeness, etc.
...
&gt; 
&gt; This looks very much like an ocaml object type to me...
&gt; Is the absence of labels for fields important?

  Nor, it is not. The labels are not at all important. The same scheme
will work for open/extensible records. (In fact, those are the records
which are extensible in Oberon.) I have just run once the "ocamlc"
compiler with the "-dlambda" option, and I was pleasantly surprised to
see that access to components of a type is coded to something as simple
as:

	(field 0 param/57)
        (field 1 param/57)

and so on. But this means that any function which works with "point"-s
(from my previous message) will work work correctly "color_point"-s, if
it were allowed to. Correct me if I'm wrong, but the objects have a
higher overhead. Besides -- I'm subjective, of course -- this scheme has
some kind of "math appeal" to me.

  I know that there is and will always be a tradeoff between
expressiveness of a language and its complexity, so don't take that
proposal, for more than it is. Just a few thoughts. 

Vasile Rotaru

-- 
It is easy to find fault, if one has that disposition.  There was once a man
who, not being able to find any other fault with his coal, complained that
there were too many prehistoric toads in it.
		-- Mark Twain, "Pudd'nhead Wilson's Calendar"

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

