Thanks guys :-)

* Nicolas Pouillard <[email protected]> [2009-01-03 16:39:59 +0100]:

> Excerpts from Xie Hanjian's message of Sat Jan 03 16:28:30 +0100 2009:
> > Hi,
> > 
> > I tried this in ghci:
> > >Prelude> 1:2:[] == 1:2:[]
> > True
> > 
> > Does this mean (:) return the same object on same input, or
> > (==) is not for identity checking? If the later is true, how
> > can I check two object is the *same* object?
> 
> Here (==) is the structural equality. There is generally no exposed function
> to check for identity of values. This would expose too much of the memory
> model and the compilation process to give a specification to such a function.
> 
> -- 
> Nicolas Pouillard

-- 
jan=callcc{|jan|jan};jan.call(jan)

Attachment: pgpgPJ9sBZB8C.pgp
Description: PGP signature

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to