Pete Lomax writes:
> I'm not convinced at all here. PMC comparison ops, afaict, are based
> solely on the pmc instance/address
>
> Here's a snippet to play with:
>
> $P1 = new Array
> $P1 = 2
> $P1[0] = 1
> $P1[1] = 1
> $P2 = new Array
> $P2 = 2
> $P2[0] = 1
> $P2[1] = 1
> # eq $P1, $P2, _L3
> eq "fred", "fred", _L3
> print "error \"fred\"!=\"fred\""
> _L3:
>
>
> Is $P1=$P2?
Nope. Mostly because classes/array.pmc says:
/* == operation */
INTVAL is_equal (PMC* value) {
/* XXX */
return 0;
}
:-)
Luke