12501Re: Truthfulness of physical equality of empty lists
- Mar 1, 2011Hello,
On 01-03-2011, Arlen Cuss <celtic@...> wrote:
> I've gone temporarily dumb, as I swear I've seen a reference for why
> empty lists should always be physically equal ( == ), but can't seem
> to find it any more.
> Is anyone able to educate me or provide a link as to how come this
The empty list is an immediate value  -> Val_int(0).
So it is just like if you compare two unboxed integers (i.e. 0 == 0).
Sylvain Le Gall
My company: http://www.ocamlcore.com
Start an OCaml project here: http://forge.ocamlcore.org
OCaml blogs: http://planet.ocamlcore.org
- << Previous post in topic Next post in topic >>