Browse thread
ambitious proposal: polymorphic arithmetics
[
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: | Eijiro Sumii <eijiro_sumii@a...> |
| Subject: | Re: [Caml-list] ambitious proposal: polymorphic arithmetics |
From: "Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl> > # type t = A | B | C;; > type t = A | B | C > # match (Obj.magic (Obj.magic C + Obj.magic C)) with A -> 0 | B -> 1 | C -> 2;; > zsh: segmentation fault ocaml Good job!! It reproduced in all environments I have access to. Then, after all, "polymorphic addition" isn't actually as easy to implement in OCaml as I (rather naively) thought... Thanks so much to everybody for the very informative responses! Eijiro