On 28/08/2011 6:44 PM, Patrick Walton wrote:
On 08/28/2011 03:42 PM, Graydon Hoare wrote:
This more-or-less corresponds to what I expected. However, it's not
quite what I observed. For example:

if @[1,2,3] == (@[1,2] + @[3]) {
stdout.write_line("TRUE");
}

prints "TRUE". I guess the pointers could be equal but it would be a bit
surprising to me.

Yeah. That's probably a bug.

I thought == (and <, >) were supposed to be deep? That's how I
implemented them anyway.

Non on shared boxes. They might be cyclic, so it might not terminate.

We're no longer statically differentiating the cyclic from the acyclic.

-Graydon


_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to