Browse thread
Objective Caml 2.02
[
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: | David Monniaux <monniaux@c...> |
| Subject: | Re: List.filter in Ocaml 2.02 |
On 12 Mar 1999, Wolfram Kahl wrote: > The fact that this is reported to work anyway, implies > that the compiler shares these common subexpressions ``[]'', > and this gets me asking: If I'm not mistaken, the reason is much more trivial. [] is a 0-ary constructor and is as such stored as an unboxed integer. Two unboxed integers of the same value are "physically equal". :-) Regards, D. Monniaux