Re: [perl #61052] [BUG]: r33482 Can't run 'make realclean' in languages/perl6 directory

2008-12-05 Thread Moritz Lenz
[EMAIL PROTECTED] (via RT) wrote: > # New Ticket Created by [EMAIL PROTECTED] > # Please include the string: [perl #61052] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=61052 > > > > This bug has been around for a whil

Questions on $! (dollar-bang)

2008-12-05 Thread Moritz Lenz
Hi, Stephen Weeks asked for clarification on #perl6 on how to implement $!, I didn't find the answer for most the issues. In particular: * S04 states that .defined and .true mark the Exception object as handled. But what do those methods return? alway true (since $! contains undef anyway if ther

For your encouragement

2008-12-05 Thread Simon Cozens
I just ran this code, which worked with the expected results: use DBDI; my $conn = DBDI::DriverManager.getConnection("dbdi:SQLite3:test.db", "", ""); my $stm = $conn.createStatement(); my $rs = $stm.executeUpdate("CREATE TABLE foo (bar, baz)"); my $stm = $conn.prepareStatement("INSERT INTO foo (b

[perl #61060] Parser bug with attributes and blocks

2008-12-05 Thread via RT
# New Ticket Created by Simon Cozens # Please include the string: [perl #61060] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61060 > This is a bit of a fragile one as it moves around depending on what NCI functions I have

[perl #57094] [BUG] infix:= converts a PGE::Match to a Str, not a Match

2008-12-05 Thread [EMAIL PROTECTED] via RT
Hi, After checking with the latest Rakudo, I think this issue is now resolved. We get: my $x = "food"; my $y = $x.match(/$=[f](o+)/); say $y.WHAT; # Match say $y; # foo say $y; # f say $y[0]; # oo However, this still failed: say $y ~~ Match; # gave 0 So I fixed that in 33504, and I think this

Re: Re: how to write literals of some Perl 6 types?

2008-12-05 Thread xyf . xiao
> Please forgive my ignorance; but are there any cases where > 'Bool::True' can be spelled more concisely as 'True'? There are; As long as the short name is unambiguous, it can be used. What doe *short* name mean? Bool::T or True?

Re: Re: how to write literals of some Perl 6 types?

2008-12-05 Thread Mark J. Reed
On Fri, Dec 5, 2008 at 1:19 AM, <[EMAIL PROTECTED]> wrote: >> There are; As long as the short name is unambiguous, it can be used. >> >> >> > > What doe *short* name mean? Bool::T or True? It means "True". In this case "short" means "unqualified" - strip off the package name (leading stuff befor

Re: how to write literals of some Perl 6 types?

2008-12-05 Thread Aristotle Pagaltzis
* TSa <[EMAIL PROTECTED]> [2008-12-03 09:30]: > And I want to pose the question if we really need two types > Bool and Bit. I think so. Binary OR and logical OR are different beasts. As Duncan said, the real question is what’s the point of having Bit when we also have both Int and Blob. I think n

Equality of values and types (was Re: how to write literals of some Perl 6 types?)

2008-12-05 Thread David Green
On 2008-Dec-4, at 4:41 pm, Leon Timmermans wrote: On Thu, Dec 4, 2008 at 6:34 PM, TSa <[EMAIL PROTECTED]> wrote: And how about 'Num 1.0 === Complex(1,0) === Int 1'? IMHO the spec on === is quite clear: "two values are never equivalent unless they are of exactly the same type." I guess the

Re: why infix::(Int, Int --> Rat)

2008-12-05 Thread David Green
On 2008-Dec-4, at 3:08 pm, Mark J. Reed wrote: Using "div" instead of "/" should make it pretty clear that you're disposing of the remainder. I misremembered div vs. idiv, but how standard is it? I know "div" commonly means int division, but not always. On the one hand, some things you j

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-05 Thread David Green
On 2008-Dec-4, at 9:09 am, Aristotle Pagaltzis wrote: And while it does seems like a closure trait, that seems somewhat problematic in that the order of evaluation is weird when compared to other closure traits, which I suppose is what led you to declare the “coy” solution as the most natura

Re: For your encouragement

2008-12-05 Thread Andy Lester
On Dec 5, 2008, at 4:13 AM, Simon Cozens wrote: I just ran this code, which worked with the expected results: Beautiful. Posted to Perlbuzz. http://perlbuzz.com/2008/12/database-access-in-perl-6-is-coming-along-nicely.html xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AI

Re: why infix::(Int, Int --> Rat)

2008-12-05 Thread Mark J. Reed
On Fri, Dec 5, 2008 at 9:10 AM, David Green <[EMAIL PROTECTED]> wrote: > I misremembered div vs. idiv, but how standard is it? I know "div" commonly > means int division, but not always. True enough. In ANSI C, / already does integer division, but there's also a div() function - the difference th

[Fwd: Perl compiler]

2008-12-05 Thread Reini Urban
FYI: Another perl5->parrot is in the works. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ --- Begin Message --- Hi, I saw your post on use.perl about B::C and B::CC. Near the bottom you mention: > We might want to convert perl5 to various other formats, such as > native code (JIT), p

Re: how to write literals of some Perl 6 types?

2008-12-05 Thread Paul Hodges
(full quote below) > As Duncan said, the real question is what’s the point of having > Bit when we also have both Int and Blob. I think none. I can't find anything in the existing synopses about Blobs. Probably looking in the wrong place, sorry. Blobs can handle arbitrary numbers of bits? If so,

Re: Regex - Accessing captured subrules could be problematic

2008-12-05 Thread Patrick R. Michaud
On Thu, Dec 04, 2008 at 07:00:55PM +0100, Moritz Lenz wrote: > GW wrote: > > I found something that could be problematic (haven't yet found out if it > > should be a special case) in Synopsis 5. More precisely it is under the > > chapter "Accessing captured subrules" in the test case > > t/regex/fr

Re: [perl #61026] xx puts the same object in all spots, even value types

2008-12-05 Thread Patrick R. Michaud
On Wed, Dec 03, 2008 at 12:59:36PM -0800, Carl Mäsak wrote: > perl6: my @a = 0 xx 4; @a[0] = 42; say @a.perl > rakudo 33460: OUTPUT[[42, 42, 42, 42]␤] > ..pugs: OUTPUT[\(42, 0, 0, 0)␤] > ..elf 24144: OUTPUT[[42,0,0,0]␤] > jnthn: right > masak: Oooh, that's a good one! > who's right, elf/pugs

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-05 Thread David Green
On 2008-Dec-5, at 7:43 am, David Green wrote: Now the condition is in the middle and is syntactically separate. (It's still not up front, but if the first block is really long, you can always... add a comment!) Well, you don't need a comment -- why not allow the condition to come first?

Re: [perl #61052] [BUG]: r33482 Can't run 'make realclean' in languages/perl6 directory

2008-12-05 Thread Ovid
- Original Message > From: Moritz Lenz <[EMAIL PROTECTED]> > (Just out of curiosity, do you need 'make realclean' in > languages/perl6/? Most of the time a simple 'make' works for me, or a > 'make clean'. I never needed realclean in Rakudo, only in parrot so far). No, I don't need to do

Re: why infix::(Int, Int --> Rat)

2008-12-05 Thread TSa
HaloO, Mark J. Reed wrote: Well, respelling it is OK, just not sure how. Python 3 uses // for integer division, but we don't want to open up that can of worms again.. We still haven't used '÷' which is Latin1. But if we use that it should be as infix:<÷>:(Int, Int --> Rat) because this doesn'

Re: why infix::(Int, Int --> Rat)

2008-12-05 Thread TSa
HaloO, David Green wrote: On 2008-Dec-4, at 3:08 pm, Mark J. Reed wrote: Using "div" instead of "/" should make it pretty clear that you're disposing of the remainder. I strongly agree to that. Actually you are disposing of the fractional part. I misremembered div vs. idiv, but how standar

Re: how to write literals of some Perl 6 types?

2008-12-05 Thread Carl Mäsak
Paul (>): > I can't find anything in the existing synopses about Blobs. > Probably looking in the wrong place, sorry. // Carl

Re: For your encouragement

2008-12-05 Thread Geoffrey Broadwell
On Fri, 2008-12-05 at 09:10 -0600, Andy Lester wrote: > On Dec 5, 2008, at 4:13 AM, Simon Cozens wrote: > > > I just ran this code, which worked with the expected results: > > > Beautiful. Posted to Perlbuzz. > > http://perlbuzz.com/2008/12/database-access-in-perl-6-is-coming-along-nicely.html

Re: For your encouragement

2008-12-05 Thread Andy Lester
On Dec 5, 2008, at 1:11 PM, Geoffrey Broadwell wrote: I can't, because as Perlbuzz oh-so-helpfully tells me when I try to submit my comment: "Registration is required." With no indication how to actually do so. You have to have JavaScript turned on. Sorry that the message sucks. It's on

[perl #56602] [TODO] 'is also' doesn't work on class Str (but everywhere else)

2008-12-05 Thread [EMAIL PROTECTED] via RT
On Sun Nov 23 11:31:29 2008, moritz wrote: > However the tests discovered that class Str can't be extended thusly > ("Method 'mydouble' not found for invocant of class 'Perl6Str'", you get > that output if you run the test file directly instead of the fudged > version), so I'll leave this ticket op

Re: For your encouragement

2008-12-05 Thread Mark J. Reed
On Fri, Dec 5, 2008 at 2:11 PM, Geoffrey Broadwell <[EMAIL PROTECTED]> wrote: > Someone needs to reply to the comments from readers who have confused > DBI and DBDI, and have thus decided we are turning Perl into Java. DBDI may not be DBI, but they're related, and DBI uses underscores (though I gu

[perl #58276] [BUG] Can't iterate over list that was passed as a subroutine argument

2008-12-05 Thread jn...@jnthn.net via RT
On Fri Aug 22 15:13:14 2008, [EMAIL PROTECTED] wrote: > Rakudo r30452: > > > sub a(@b) { for @b { .say } }; my @x = (1, 2, 3); a(@x) > 1 2 3 > > That should be > 1 > 2 > 3 > This now works (probably has for a while, I just spotted the ticket and thought "ah, didn't we fix that one?"), but do we

[perl #60092] $/ cannot be assigned to other vars or passed as a parameter

2008-12-05 Thread jn...@jnthn.net via RT
On Fri Oct 24 10:30:00 2008, [EMAIL PROTECTED] wrote: > > Chris Dolan writes the following to p6u: > > > > I'm learning about Match objects today. I can't assign $/ to a > > variable or pass it to a method. > > This sounds a lot like > [perl #57094] [BUG] infix:= converts a PGE::Match to a Str, n

Re: For your encouragement

2008-12-05 Thread Geoffrey Broadwell
On Fri, 2008-12-05 at 13:13 -0600, Andy Lester wrote: > On Dec 5, 2008, at 1:11 PM, Geoffrey Broadwell wrote: > > I can't, because as Perlbuzz oh-so-helpfully tells me when I try to > > submit my comment: "Registration is required." With no indication how > > to actually do so. > > You have to ha

Re: For your encouragement

2008-12-05 Thread Andy Lester
On Dec 5, 2008, at 3:41 PM, Geoffrey Broadwell wrote: OK, that's fair enough -- but why does submitting a dead simple form require JavaScript? Got me. Hmmm, maybe I should be taking this up with the MT developers. Are you running a current enough rev that it's likely still a problem? (I

[perl #61060] Parser bug with attributes and blocks

2008-12-05 Thread [EMAIL PROTECTED] via RT
On Fri Dec 05 02:05:07 2008, [EMAIL PROTECTED] wrote: > This is a bit of a fragile one as it moves around depending on what NCI > functions I have compiled. This segfaults for me: > > class foo { has $x; method y() { { $x } } } > > Previously it segfaulted like this: > > class Foo { has $x; meth

Re: For your encouragement

2008-12-05 Thread Simon Cozens
Geoffrey Broadwell wrote: > Someone needs to reply to the comments from readers who have confused > DBI and DBDI, and have thus decided we are turning Perl into Java. It's Perl people, Geoffrey. You tell them that you've made a racing car out of old biscuit tins, they'll tell you that you painted

Re: For your encouragement

2008-12-05 Thread Andy Lester
On Dec 5, 2008, at 6:33 PM, Simon Cozens wrote: It's Perl people, Geoffrey. You tell them that you've made a racing car out of old biscuit tins, they'll tell you that you painted it the wrong colour. s/Perl//; But I agree with you, it's frustrating that that's what people choose to se

Re: For your encouragement

2008-12-05 Thread Ben. B.
s/racing car/bike shed/ On Fri, Dec 5, 2008 at 7:37 PM, Andy Lester <[EMAIL PROTECTED]> wrote: > > On Dec 5, 2008, at 6:33 PM, Simon Cozens wrote: > > It's Perl people, Geoffrey. You tell them that you've made a racing car >> out of old biscuit tins, they'll tell you that you painted it the wron

[perl #61044] [BUG] r33477 fails t/compilers/imcc/syn/macro.t on OS X

2008-12-05 Thread James Keenan via RT
Ovid: I'm going to merge this RT into the one we already have open reporting the same failure on Darwin/PPC. I believe the problem occurred in r33324. I think chromatic is looking into this. Thank you for your report. kid51