[perl #33603] Undef != Undef

2007-07-26 Thread Will Coleda via RT
On Thu Jul 26 16:49:12 2007, allison wrote: > PMCNULL is a singleton, so PMCNULL always equals PMCNULL. > > Undef allows morphing and "interesting values" of Undef (with attached > properties and possibly roles) so it can't be just a singleton. But, > Undef can report itself as equal to other Unde

[perl #33603] Undef != Undef

2007-07-26 Thread Allison Randal via RT
PMCNULL is a singleton, so PMCNULL always equals PMCNULL. Undef allows morphing and "interesting values" of Undef (with attached properties and possibly roles) so it can't be just a singleton. But, Undef can report itself as equal to other Undefs. Let's make it so. It's likely that undefined elem

Re: [perl #33603] Undef != Undef

2006-02-20 Thread Joshua Isom
And what about Null? And if they're not equal, what effect would that have on sorting? Although for sorting, I guess that NaN != NaN would have the some issue, but undef values in an array are more likely. On Feb 20, 2006, at 4:34 PM, Joshua Hoblitt via RT wrote: Can we get a design descisi

[perl #33603] Undef != Undef

2006-02-20 Thread Joshua Hoblitt via RT
> [EMAIL PROTECTED] - Wed Dec 29 18:22:10 2004]: > > > This code: > > new P0, .Undef > new P1, .Undef > eq P0, P1, L1 > print "not " > L1: print "ok\n" > end > > prints "not ok". Should it? If Parrot considers every Undef PMC to > be distinct, it's going to ma

Re: [perl #33603] Undef != Undef

2005-01-02 Thread Leopold Toetsch
Simon Glover <[EMAIL PROTECTED]> wrote: > On Fri, 31 Dec 2004, Leopold Toetsch wrote: >> This is a different issue. The ResizablePMCArray doesn't properly >> inherit the is_equal multi method from FixedPMCArray and as far as I can >> see, there is no Undef involved at all. Empty array slots are f

Re: [perl #33603] Undef != Undef

2004-12-31 Thread Simon Glover
On Fri, 31 Dec 2004, Leopold Toetsch wrote: > Simon Glover <[EMAIL PROTECTED]> wrote: > > > new P0, .ResizablePMCArray > > set P0, 1 > > clone P1, P0 > > eq P0, P1, L1 > > print "not " > > L1: print "ok" > > print "\n" > > end > > > prints "not ok". >

Re: [perl #33603] Undef != Undef

2004-12-31 Thread Sam Ruby
Leopold Toetsch wrote: Simon Glover <[EMAIL PROTECTED]> wrote: This code: new P0, .Undef new P1, .Undef eq P0, P1, L1 print "not " L1: print "ok\n" end prints "not ok". Should it? That depends ;) ... If Parrot considers every Undef PMC to be distinct, it's going to make

Re: [perl #33603] Undef != Undef

2004-12-31 Thread Leopold Toetsch
Simon Glover <[EMAIL PROTECTED]> wrote: > This code: > new P0, .Undef > new P1, .Undef > eq P0, P1, L1 > print "not " > L1: print "ok\n" > end > prints "not ok". Should it? That depends ;) > ... If Parrot considers every Undef PMC to > be distinct, it's goin

[perl #33603] Undef != Undef

2004-12-31 Thread via RT
# New Ticket Created by Simon Glover # Please include the string: [perl #33603] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=33603 > This code: new P0, .Undef new P1, .Undef eq P0, P1, L1 pri