Browse thread
How to do this properly with OCaml?
-
Thomas Fischbacher
- Christophe Dehlinger
- Berke Durak
- Michel Quercia
- Eric Cooper
-
Michael Alexander Hamburg
-
Xavier Leroy
- Berke Durak
- Michael Alexander Hamburg
- Thomas Fischbacher
-
Alex Baretta
- james woodyatt
- Stephane Glondu
-
brogoff
- Alex Baretta
- Alex Baretta
- skaller
- Thomas Fischbacher
-
Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Alex Baretta <alex@b...> |
| Subject: | Re: [Caml-list] "Just say no!" campaign against Obj [was: How to do this properly with OCaml?] |
brogoff wrote: > On Sun, 24 Jul 2005, Alex Baretta wrote: > > I was able to use the higher order polymorphism of record fields to implement > polymorphic recursion, WITHOUT using Obj.magic. I posted that approach on the > list a long time ago, it was really the same trick as using polymorphic methods > to do the same. You can use that trick to implement the signatures in Okasaki's > book that use P.R. fairly easily. Why did you need Obj.magic? I had missed your post[1]. I just read it. The function dictionary paradigm is probably what I'm missing to make the type-checker happy. Thanks Brian! Alex [1] http://caml.inria.fr/pub/ml-archives/caml-list/2002/08/9e1089a04ce714a0541373be008c3130.en.html -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) <http://www.asxcaml.org/> The FreerP Project <http://www.freerp.org/>