Re: Perl 6 Summary... p6rules

2005-05-31 Thread Patrick R. Michaud
On Tue, May 31, 2005 at 11:58:12PM -0400, Dino Morelli wrote: > Thank you for the summary, Matt > > I have a correction, though: > > > subrules tests > >Dino Morelli provided a patch adding tests for subrules to PGE. Warnock > >applies. > > > > > > This and my o

Perl 6 Summary for 2005-05-24 through 2005-05-31

2005-05-31 Thread Matt Fowles
Perl 6 Summary for 2005-05-24 through 2005-05-31 All~ Welcome to another Perl 6 summary, brought to you by Aliya's new friends, Masha Nannifer and Philippe, and my own secret running joke. Without further ado, I bring you Perl 6 Compiler. Perl 6 Compiler method chaining

Re: loop/do {...} while EXPR;

2005-05-31 Thread Larry Wall
On Mon, May 30, 2005 at 01:42:40PM +, Luke Palmer wrote: : Because do {...} is a part of the language, while or no while. Perl 6 : is supposed to die if you say do {...} while, which isn't implemented : in pugs yet. In particular, we'd like "do {...} while" to die because do {...} is now defi

Re: Undef issues

2005-05-31 Thread Larry Wall
On Tue, May 24, 2005 at 10:53:59PM +1000, Stuart Cook wrote: : I'm not sure whether this behaviour is supposed to be changing. It is. I think we decided to make the value undef, and the function undefine(). (But these days most values of undef really ought to be constructed and returned (or thro

Re: pugs 'make clean' fatal error on ms windows

2005-05-31 Thread Carl Franks
On 5/31/05, Aankhen <[EMAIL PROTECTED]> wrote: > You need to get a later version of nmake. The latest is 7.10, I believe. 1.50 -> 7.10 That's quite a version number jump! I've updated it, and it works now, thanks. Carl

Re: date and time formatting

2005-05-31 Thread Patrick R. Michaud
On Tue, May 31, 2005 at 09:23:11AM -0400, Nathan Gray wrote: > As I am interested in human-readable dates and times, and having found > no conclusive discussion on time formatting, I make my recommendation > for a syntax (to start discussion, and allow for date formatting to be > implemented in pug

Re: pugs 'make clean' fatal error on ms windows

2005-05-31 Thread Aankhen
On 5/31/05, Carl Franks <[EMAIL PROTECTED]> wrote: > Running `make clean` on WindowsXP is dying with an "expanded command > line too long" error. You need to get a later version of nmake. The latest is 7.10, I believe. Aank

Re: parse problem with subroutines?

2005-05-31 Thread Carl Franks
ok, that was quick :) Shall I remove what I'd already added to the bottom of the file? Carl

Re: parse problem with subroutines?

2005-05-31 Thread Carl Franks
On 5/31/05, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: > I didn't really realize that there was a p5->p6 porting guide until I > saw this. I'll add something to the guide as above (plus subs). I've already added a bit about method calls, but I'll leave it alone for you to do arrays/hashes. C

Re: parse problem with subroutines?

2005-05-31 Thread Jonathan Scott Duff
On Tue, May 31, 2005 at 08:05:04AM -0500, david d zuhn wrote: > If this is indeed a statement that all function calls, especially > the ordinary sort that are used most often, must be of the form "a(b)" > rather than allowing "a (b)", this is a pretty fundamental change in > perl that ought to be m

Re: date and time formatting

2005-05-31 Thread Rob Kinyon
On 5/31/05, Nathan Gray <[EMAIL PROTECTED]> wrote: > As I am interested in human-readable dates and times, and having found > no conclusive discussion on time formatting, I make my recommendation > for a syntax (to start discussion, and allow for date formatting to be > implemented in pugs): What'

date and time formatting

2005-05-31 Thread Nathan Gray
As I am interested in human-readable dates and times, and having found no conclusive discussion on time formatting, I make my recommendation for a syntax (to start discussion, and allow for date formatting to be implemented in pugs): I would like for time() to return an object, which in numeric co

Re: parse problem with subroutines?

2005-05-31 Thread david d zuhn
$v = numcmp (1,2); # fails with Synopsis 2: Whitespace is not allowed before the parens, but there is a corresponding .() operator, which allows you to insert optional whitespace before the dot. $v = numcmp .(1,2); # should pass The quoted text is in a paragraph describing explicit functi

Re: parse problem with subroutines?

2005-05-31 Thread Carl Franks
On 5/31/05, david d zuhn <[EMAIL PROTECTED]> wrote: > this is a pretty fundamental change in > perl that ought to be made a bit clearer (it's not in the p5->p6 porting > guide, for example). Agreed. I remembered this being discussed by Abigail. Found it here: http://www.perlmonks.org/?node_id=346

pugs 'make clean' fatal error on ms windows

2005-05-31 Thread Carl Franks
Running `make clean` on WindowsXP is dying with an "expanded command line too long" error. Output as follows: >make clean Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cd ext\Algorithm-TokenBucket && C:\Perl\bin\perl.

new / BUILD errors

2005-05-31 Thread Carl Franks
Here's a demo script: #!/usr/bin/pugs use v6; class Foo { multi method new (Class $class: Str $date) { say "ok"; return $class.new(date => $date); } submethod BUILD (+$date) { say "date: '$date'"; } } my $foo = Foo.new(date => 'blah'); =cut >pugs test.pl ok date: '' Proble

Re: parse problem with subroutines?

2005-05-31 Thread Carl Franks
On 5/31/05, david d zuhn <[EMAIL PROTECTED]> wrote: > Running pugs r4158, I find that (some, at least) subroutine calls > only work with no whitespace between the sub name and the arguments. > > $v = numcmp (1,2); # fails with > > I don't see anywhere in the canon that no whitespace is allowed

parse problem with subroutines?

2005-05-31 Thread david d zuhn
Running pugs r4158, I find that (some, at least) subroutine calls only work with no whitespace between the sub name and the arguments. sub numcmp ($a, $b) { return $a <=> $b }; $v = numcmp(1,2); # works fine $v = numcmp (1,2); # fails with $v = numcmp I don't see anywhere in the canon that