Re: More junctions

2002-11-16 Thread Damian Conway
Deborah Ariel Pickett wrote: Luke wrote: $foo = 1 | 2 | 4 print $foo; # Foo is now just one of (1, 2, 4); i.e. not a junction Just a sanity check, but is this kind of behaviour something we still want from junctions? Perhaps the above should just print JUNCTION(0x1234) or

Re: More junctions

2002-11-16 Thread Damian Conway
Luke Palmer wrote: sub foo($x) { if ($x != 4) { print Not four\n; } if ($x == 4) { print Four\n; } } sub oof($x) { if ($x != 4) { print Not four\n; } else { print Four\n; } }

Re: More junctions

2002-11-16 Thread Damian Conway
Brent Dax wrote: More simply, !($x == 4) is no longer exactly equivalent to ($x != 4). Correct. Junctive algebra and logic is slightly different. yet another reason not to allow junctions to seep into subroutines by default. Actually, this suggests to me a flaw in the != operator, not a

Re: More junctions

2002-11-16 Thread David Wheeler
On Saturday, November 16, 2002, at 04:52 PM, Damian Conway wrote: if $moe|$larry|$curly == $hurt {...} # i.e. any of them hurt and: if $moe|$larry|$curly != $hurt {...} # at least one not hurt and also between: if $moe$larry$curly == $hurt {...} # all hurt and: if

Re: More junctions

2002-11-15 Thread Piers Cawley
Damian Conway [EMAIL PROTECTED] writes: Luke Palmer asked: When junctions collapse, Sigh, not another one of those dreadful reality TV shows: When animals attack When drivers collide When junctions collapse Next we'll get: When mailing lists explode

Re: More junctions

2002-11-14 Thread Damian Conway
Luke Palmer asked: When junctions collapse, Sigh, not another one of those dreadful reality TV shows: When animals attack When drivers collide When junctions collapse Next we'll get: When mailing lists explode When threads perpetuate When Piers summarize When Larrys make puns ;-)

More junctions

2002-11-13 Thread Luke Palmer
When junctions collapse, is that reflected back in the original junction, as it should be (QM-wise)? $foo = 1 | 2 | 4 print $foo; # Foo is now just one of (1, 2, 4); i.e. not a junction If so, what is perl going to do about the computationally expensive entanglement thingy? $x =

Re: More junctions

2002-11-13 Thread Deborah Ariel Pickett
Luke wrote: When junctions collapse, is that reflected back in the original junction, as it should be (QM-wise)? $foo = 1 | 2 | 4 print $foo; # Foo is now just one of (1, 2, 4); i.e. not a junction [...] Just a sanity check, but is this kind of behaviour something we still

Re: More junctions

2002-11-13 Thread Smylers
Deborah Ariel Pickett wrote: Luke wrote: $foo = 1 | 2 | 4 print $foo; # Foo is now just one of (1, 2, 4); i.e. not a junction Just a sanity check, but is this kind of behaviour something we still want from junctions? Perhaps the above should just print JUNCTION(0x1234)

Re: More junctions

2002-11-13 Thread Luke Palmer
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm From: Deborah Ariel Pickett [EMAIL PROTECTED] Date: Thu, 14 Nov 2002 09:05:16 +1100 (EST) Cc: [EMAIL PROTECTED] X-SMTPD: qpsmtpd/0.12, http://develooper.com/code/qpsmtpd/ Luke wrote: When junctions collapse, is that reflected back in

RE: More junctions

2002-11-13 Thread Brent Dax
Luke Palmer: # sub foo($x) { # if ($x != 4) { # print Not four\n; # } # if ($x == 4) { # print Four\n; # } # } # sub oof($x) { # if ($x != 4) { # print Not four\n; # } # else { # print