Re: [perl #66854] [TODO] Implement 'subset' declaration without where clause

2009-06-22 Thread Kyle Hasselbacher
I've added a test for this in r27180 at the end of S12-subset/subtypes.t It looks like this: #?rakudo todo 'bug #66854' eval_lives_ok 'subset A of Int;', 'subset declaration without where clause'; Kyle. On Mon, Jun 22, 2009 at 8:38 AM, Carl Mäsak wrote: > # New Ticket Created by  "Carl Mäsak" >

Re: [perl #66868] Zero-arg sub params interpreted as parameterless sub

2009-06-22 Thread Kyle Hasselbacher
I've added a test for this in r27179 at the end of S06-signature/arity.t It looks like this: #?rakudo todo 'bug #66868: Zero-arg sub interpreted as parameterless' dies_ok { a_zero( 'hello', 'world' ) }, 'no matching sub signature'; I wrote this assuming that the error that's supposed to occur is

Re: XOR does not work that way.

2009-06-22 Thread Jon Lang
Take a look at the page to which Damian provided a link. You'll find that XOR does indeed correspond to the definition being used by Perl 6, as well as the natural language meaning. What other languages call XOR is actually an "odd parity check". As I suggested above, I think that Perl 6 already

Re: XOR does not work that way.

2009-06-22 Thread Darren Duncan
Mark J. Reed wrote: All of which is just by way of agreeing with Jon: formal logic is not the primary motivator behind Perl's design. So while it should be considered, it's not a knockout punch to say "but logic doesn't work that way." I think another thing to consider is a survey of the variou

Re: XOR does not work that way.

2009-06-22 Thread Mark J. Reed
> On Mon, Jun 22, 2009 at 4:12 PM, Minimiscience wrote: > I don't think natural language -- especially the abomination that is English > -- is the best guide for understanding logical operations (why, yes, I *do* > speak Lojban; how did you know?). To which Jon Lang replied: > You're aware that Pe

[perl #66868] Zero-arg sub params interpreted as parameterless sub

2009-06-22 Thread via RT
# New Ticket Created by Trey Harris # Please include the string: [perl #66868] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66868 > 13:52 < Trey> rakudo: sub foo() { say 'hi'}; foo('hi', 'mom'); 13:52 < p6eval> rakudo 10f

Re: XOR does not work that way.

2009-06-22 Thread Jon Lang
On Mon, Jun 22, 2009 at 4:12 PM, Minimiscience wrote: > On Jun 22, 2009, at 5:51 PM, Damian Conway wrote: >> >> Perl 6's approach to xor is consistent with the linguistic sense of >> 'xor' ("You may have a soup (x)or a salad (x)or a cocktail"), and also >> with the IEEE 91 standard for logic gates.

Re: XOR does not work that way.

2009-06-22 Thread Minimiscience
On Jun 22, 2009, at 5:51 PM, Damian Conway wrote: Perl 6's approach to xor is consistent with the linguistic sense of 'xor' ("You may have a soup (x)or a salad (x)or a cocktail"), and also with the IEEE 91 standard for logic gates. I don't think natural language -- especially the abomination th

Re: XOR does not work that way.

2009-06-22 Thread Darren Duncan
Damian Conway wrote: Perl 6's approach to xor is consistent with the linguistic sense of 'xor' ("You may have a soup (x)or a salad (x)or a cocktail"), and also with the IEEE 91 standard for logic gates. See: http://ozark.hendrix.edu/~burch/logisim/docs/2.1.0/libs/gates/xor.html for a concis

[perl #66854] [TODO] Implement 'subset' declaration without where clause

2009-06-22 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #66854] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66854 > std: subset A of Int; std 27169: OUTPUT«ok 00:02 35m␤» rakudo: subset A of Int; raku

Re: XOR does not work that way.

2009-06-22 Thread Damian Conway
Perl 6's approach to xor is consistent with the linguistic sense of 'xor' ("You may have a soup (x)or a salad (x)or a cocktail"), and also with the IEEE 91 standard for logic gates. See: http://ozark.hendrix.edu/~burch/logisim/docs/2.1.0/libs/gates/xor.html for a concise explanation of both t

Re: XOR does not work that way.

2009-06-22 Thread yary
I had a bit of a problem when first encountering xor with more than two operands as well. It made sense after I thought about it linguistically instead of mathematically. When speaking people often use a string of "or"s to mean "pick one and only one of these choices, the the exclusion of all other

XOR does not work that way.

2009-06-22 Thread Minimiscience
S03 describes ^^ as a "short‐circuit exclusive‐or" operator which returns true if & only if exactly one operand is true, short circuiting after encountering two true values. However, this definition is only consistent with the mathematical definition of XOR when the operation is being perf

[perl #66866] No line number in error "Method 'my_non_existent_method_6R5' not found for invocant of class 'Str' "

2009-06-22 Thread via RT
# New Ticket Created by Shlomi Fish # Please include the string: [perl #66866] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66866 > The following program: {{{ #!/usr/bin/pugs use v6; say "Hello"; say "a".my_non_exi

Re: [perl #66840] AutoReply: [BUG] rakudo dies when Ternary Error occurs

2009-06-22 Thread John Macdonald
On Mon, Jun 22, 2009 at 04:59:07PM +0900, hojung yoon wrote: > from S03: > http://perlcabal.org/syn/S03.html#Conditional_operator_precedence > > : It is a syntax error to use an operator in the middle part that binds > looser in precedence, such as =. > > : my $x; > : hmm() ?? $x = 1 !! $

Re: [perl #66840] [BUG] rakudo dies when Ternary Error occurs

2009-06-22 Thread Kyle Hasselbacher
By my reading, it really is an error, not valid code. The infix:<,> is looser than the ternary, as you say, so without parens, it parses as: (1 ?? 1),(2 !! 3),4 I agree, however, that this shouldn't die. I've added a test for this in t/spec/S03-operators/ternary.t Thanks. Kyle. On Mon, Jun 2

Re: [perl #66840] AutoReply: [BUG] rakudo dies when Ternary Error occurs

2009-06-22 Thread hojung yoon
from S03: http://perlcabal.org/syn/S03.html#Conditional_operator_precedence : It is a syntax error to use an operator in the middle part that binds looser in precedence, such as =. : my $x; : hmm() ?? $x = 1 !! $x = 2;# ERROR : hmm() ?? ($x = 1) !! ($x = 2);# works

[perl #66840] [BUG] rakudo dies when Ternary Error occurs

2009-06-22 Thread via RT
# New Ticket Created by Hojung Yoon # Please include the string: [perl #66840] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66840 > at revision: 1b06df80900096dab8a9f74467f504f73a6115dd and also at release #18. : bash$ p

Re: "Nonexistent file" processing

2009-06-22 Thread Matthew Walton
The correct place for this is in an email to rakudo...@perl.org, which will lodge a ticket with the rakudo bug tracker. I've submitted this one for you, but feel free to do it yourself in the future. Good luck with Rakudo, and enjoy Perl 6! On Sun, Jun 21, 2009 at 6:40 PM, Parrot Raiser<1parr...@

Re: Trying to install Rakudo

2009-06-22 Thread myklass
Geoffrey Broadwell wrote: On Sun, 2009-06-21 at 13:14 +0100, Lyle wrote: Hi Ron, I looks like the SVN repo was just down temporarily. Try again and it'll probably work. You can also run the svn commands directly to grab parrot... Take a look in gen_parrot.pl Ron Savage wrote: Checking out

[perl #66838] [BUG] Rakudo error message for missing input file could be better

2009-06-22 Thread via RT
# New Ticket Created by Matthew Walton # Please include the string: [perl #66838] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66838 > Parrot Raiser reported to perl6-compiler: Following the instructions on the Rakudo ho

Re: Trying to install Rakudo

2009-06-22 Thread myklass
Geoffrey Broadwell wrote: On Sun, 2009-06-21 at 13:14 +0100, Lyle wrote: Hi Ron, I looks like the SVN repo was just down temporarily. Try again and it'll probably work. You can also run the svn commands directly to grab parrot... Take a look in gen_parrot.pl Ron Savage wrote: Checking out

Parrot Bug Summary

2009-06-22 Thread Parrot Bug Summary
Parrot Bug Summary http://rt.perl.org/rt3/NoAuth/parrot/Overview.html Generated at Mon Jun 22 13:00:01 2009 GMT --- * Numbers * New Issues * Overview of Open Issues * Ticket Status By Version * Requestors with m