S16 questions

2009-02-13 Thread Timothy S. Nelson
Hi. I've been trying to help reorganise the draft S16, as I'm also in the process of writing something roughly equivalent to Net::Cmd in Perl6. I have some questions. First question, how do IO::Encoded and eg. IO::Encoded::Readable relate to each other? I'm assuming it's one of the follow

r25329 - docs/Perl6/Spec

2009-02-13 Thread pugs-commits
Author: wayland Date: 2009-02-14 07:37:40 +0100 (Sat, 14 Feb 2009) New Revision: 25329 Modified: docs/Perl6/Spec/S02-bits.pod docs/Perl6/Spec/S16-io.pod Log: S02: Moved comment about standard file handles to S16. S16: Did more clearing up, and fixed some stupid things I did last time Modi

Re: r25325 - docs/Perl6/Spec

2009-02-13 Thread Chris Dolan
On Feb 13, 2009, at 11:50 PM, Larry Wall wrote: On Fri, Feb 13, 2009 at 11:34:03PM -0600, Chris Dolan wrote: Argh! I submitted a patch implementing $?PROGRAM in Rakudo literally 5 minutes before you sent this... http://rt.perl.org/rt3/Ticket/Display.html?id=63228 Indeed, why do you thin

Re: r25325 - docs/Perl6/Spec

2009-02-13 Thread Larry Wall
On Fri, Feb 13, 2009 at 11:34:03PM -0600, Chris Dolan wrote: > Argh! I submitted a patch implementing $?PROGRAM in Rakudo literally 5 > minutes before you sent this... > > http://rt.perl.org/rt3/Ticket/Display.html?id=63228 Indeed, why do you think I fixed the spec? :) But don't worry, we te

r25328 - docs/Perl6/Spec

2009-02-13 Thread pugs-commits
Author: wayland Date: 2009-02-14 06:38:34 +0100 (Sat, 14 Feb 2009) New Revision: 25328 Modified: docs/Perl6/Spec/S16-io.pod Log: S16-io: Reorganised everything, grouping things together a bit better. This is only a draft; otherwise I'd be a lot more careful :). Specifically, I've: -

Re: r25325 - docs/Perl6/Spec

2009-02-13 Thread Chris Dolan
Argh! I submitted a patch implementing $?PROGRAM in Rakudo literally 5 minutes before you sent this... http://rt.perl.org/rt3/Ticket/Display.html?id=63228 Chris On Feb 13, 2009, at 11:21 PM, pugs-comm...@feather.perl6.nl wrote: Author: lwall Date: 2009-02-14 06:21:13 +0100 (Sat, 14 Feb 2

r25325 - docs/Perl6/Spec

2009-02-13 Thread pugs-commits
Author: lwall Date: 2009-02-14 06:21:13 +0100 (Sat, 14 Feb 2009) New Revision: 25325 Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] $?PROGRAM makes no sense Modified: docs/Perl6/Spec/S19-commandline.pod === --- docs/Per

infectious traits and pure functions

2009-02-13 Thread Jon Lang
In reading over the Debugging draft (i.e., the future S20), I ran across the concept of the infectious trait - that is, a trait that doesn't just get applied to the thing to which it is explicitly applied; rather, it tends to spread to whatever else that thing comes in contact with. "Taint" is the

r25323 - docs/Perl6/Spec

2009-02-13 Thread pugs-commits
Author: lwall Date: 2009-02-14 02:31:33 +0100 (Sat, 14 Feb 2009) New Revision: 25323 Modified: docs/Perl6/Spec/S10-packages.pod docs/Perl6/Spec/S11-modules.pod docs/Perl6/Spec/S12-objects.pod Log: Allow use of :: as anonymous package name Clear up more * as GLOBAL fossils Modified: docs

Re: References to parts of declared packages

2009-02-13 Thread TSa (Thomas Sandlaß)
On Friday, 13. February 2009 20:30:24 Larry Wall wrote: > While taking a shower I refined the design somewhat in my head, > thinking about the ambiguities in package names when you're redefining. > By my previous message, it's not clear whether the intent of > > multi package Foo::Bar {...} > >

Re: References to parts of declared packages

2009-02-13 Thread Jon Lang
Larry Wall wrote: > Jon Lang wrote: > : And with package versioning, you may not need an "is instead" > : equivalent: if you want to "redefine" a package, just create a newer > : version of it in a tighter lexical scope than the original package was > : in. You can still access the original packag

Re: Synopsis for Signatures?

2009-02-13 Thread Larry Wall
On Fri, Feb 13, 2009 at 10:24:14AM -0800, Jon Lang wrote: : Given that signatures have grown well beyond their origins as : subroutine parameter lists, and given that signatures have their own : syntax, perhaps they should be moved out of S06? I could see S08 : being retasked to address signatures

Re: References to parts of declared packages

2009-02-13 Thread Larry Wall
On Fri, Feb 13, 2009 at 10:46:42AM -0800, Jon Lang wrote: : And with package versioning, you may not need an "is instead" : equivalent: if you want to "redefine" a package, just create a newer : version of it in a tighter lexical scope than the original package was : in. You can still access the o

Re: References to parts of declared packages

2009-02-13 Thread Jon Lang
Larry Wall wrote: > Jon Lang wrote: > : Well, we _do_ have a mechanism in place for adding to an existing > : class (e.g., "class Foo is also { ... }"), and classes are a special > : case of modules; so I don't see why you shouldn't be able to do > : likewise with modules and even packages. That s

Synopsis for Signatures?

2009-02-13 Thread Jon Lang
At present, signatures appear to serve at least three rather diverse purposes in Perl 6: * parameter lists for routines (can also be used to specify what a given routine returns; explored in detail in S06). * variable declaration (see "declarators" in S03). * parametric roles (currently only addre

Re: References to parts of declared packages

2009-02-13 Thread Larry Wall
On Fri, Feb 13, 2009 at 09:44:12AM -0800, Jon Lang wrote: : TSa wrote: : > Does that imply that packages behave like C++ namespaces? That is : > a package can be inserted into several times: : > : > package A : > { : > class Foo {...} : > } : > # later elsewhere : > package A : >

Re: References to parts of declared packages

2009-02-13 Thread Jon Lang
TSa wrote: > Does that imply that packages behave like C++ namespaces? That is > a package can be inserted into several times: > > package A > { > class Foo {...} > } > # later elsewhere > package A > { > class Bar {...} > } > > I would think that this is just different sy

Re: References to parts of declared packages

2009-02-13 Thread Larry Wall
On Fri, Feb 13, 2009 at 06:27:07PM +0100, TSa wrote: > Does that imply that packages behave like C++ namespaces? That is > a package can be inserted into several times: > >package A >{ >class Foo {...} >} ># later elsewhere >package A >{ >class Bar {...} >

Re: References to parts of declared packages

2009-02-13 Thread TSa
HaloO, Jon Lang wrote: Carl Mäsak wrote: * A should be treated as a post-declared package. Whatever this means, it sounds preferable. :) It means that you can define package A without ever declaring it, by declaring all of its contents using such statements as 'role A::B ', 'sub A::Foo', and

Re: Question about testing perl6, rakudo or pugs online

2009-02-13 Thread Larry Wall
On Thu, Feb 12, 2009 at 06:37:26AM -0800, dev.null.box wrote: : Hi... : : I´m used to test oneliners on the perl6 irc channel when i´m at : home... But, at work, latetly i´m having lots of free time (this week : has been sooo boring). : : But, i have irc blocked at my office (and yes, i´ve tried

Re: Question about testing perl6, rakudo or pugs online

2009-02-13 Thread jerry gay
On Thu, Feb 12, 2009 at 06:37, dev.null.box wrote: > Hi... > > I´m used to test oneliners on the perl6 irc channel when i´m at > home... But, at work, latetly i´m having lots of free time (this week > has been sooo boring). > > But, i have irc blocked at my office (and yes, i´ve tried alternative

[perl #60258] Matching against a method produces the wrong result in Rakudo

2009-02-13 Thread jn...@jnthn.net via RT
On Fri Oct 31 06:31:53 2008, masak wrote: > Rakudo r32247 does the wrong thing when matching a something against > the ".method" syntax. > > $ perl6 -e 'class A { method alwaystrue { return 1 } }; given A.new { > say "irrelevant" ~~ .alwaystrue }' > 0 > > According to the big matching table in S0

Question about testing perl6, rakudo or pugs online

2009-02-13 Thread dev.null.box
Hi... I´m used to test oneliners on the perl6 irc channel when i´m at home... But, at work, latetly i´m having lots of free time (this week has been sooo boring). But, i have irc blocked at my office (and yes, i´ve tried alternative ports for irc on freenode)... so, i wonder, is there is a websit