Re: Roles and IO?

2008-12-12 Thread Dmitry Karasik
Hi Leon! Leon Perl 5's solution is to use a fat interface, and raise an error if Leon an unsupported action is tried. Wouldn't the proposed solution raise an error if an unsupported role method is tried? It's not that the proposed solution is inappropriate, but the problem that I

Re: Roles and IO?

2008-12-12 Thread Leon Timmermans
On Fri, Dec 12, 2008 at 3:04 AM, Jon Lang datawea...@gmail.com wrote: One of the things about roles is that once you have composed a bunch of them into another role, they're considered to be composed into whatever that role is composed into. So does File would be equivalent to does Mappable

Re: Roles and IO?

2008-12-12 Thread TSa
HaloO, Leon Timmermans wrote: I assumed a new role makes a new interface. In other words, that a type that happens to do Pollable, Mappable, Statable and Ownable wouldn't automatically do File in that case. I also think that a new role File that does also the four others is a new type on its

List.end - last item and last index mixing

2008-12-12 Thread Moritz Lenz
From S29: : =item end : : our Any method end (@array: ) is export : : Returns the final subscript of the first dimension; for a one-dimensional : array this simply the index of the final element. For fixed dimensions : this is the declared maximum subscript. For non-fixed dimensions

r24318 - docs/Perl6/Spec

2008-12-12 Thread pugs-commits
Author: particle Date: 2008-12-12 22:30:59 +0100 (Fri, 12 Dec 2008) New Revision: 24318 Added: docs/Perl6/Spec/S19-commandline.pod Log: [spec] first incomplete draft of S19. needs fleshing out in many places, but it's at the point where more eyes are sorely needed and very welcome. Added:

Re: List.end - last item and last index mixing

2008-12-12 Thread Jon Lang
Moritz Lenz wrote: From S29: : =item end : : our Any method end (@array: ) is export : : Returns the final subscript of the first dimension; for a one-dimensional : array this simply the index of the final element. For fixed dimensions : this is the declared maximum subscript. For

Where does Foo::Bar.EXPORTALL comes from?

2008-12-12 Thread Daniel Ruoso
Hi, I've been thinking about how I would implement module loading in SMOP and reached some points that I think need some clarification. The most important of them being about the EXPORTALL routine. While all the default exportation is done by the population of the EXPORT inner package, that

Re: List.end - last item and last index mixing

2008-12-12 Thread Mark J. Reed
I'd say look at prior art, but end in this role isn't very common. It shows up in AppleScript, where it does double duty: end serves as an index in ranges (items 3 through end of someList), but by itself it returns the last item, not the last index (end of someList), and as a lone index it

Re: Where does Foo::Bar.EXPORTALL comes from?

2008-12-12 Thread Patrick R. Michaud
On Fri, Dec 12, 2008 at 08:42:05PM -0300, Daniel Ruoso wrote: [...] While all the default exportation is done by the population of the EXPORT inner package, that doesn't happen from the outside, S11 implies that it happens by the calling of the EXPORTALL routine, it doesn't really make it

Re: Roles and IO?

2008-12-12 Thread Jon Lang
Leon Timmermans wrote: I assumed a new role makes a new interface. In other words, that a type that happens to do Pollable, Mappable, Statable and Ownable wouldn't automatically do File in that case. If I was wrong my abuse of subset wouldn't be necessary. Otherwise, maybe there should be a

Better sort spec?

2008-12-12 Thread Timothy S. Nelson
Hi all. I saw the new sort idea on the Rakudo blog: http://www.rakudo.org/2008/12/its-sort-of-like.html ...and wondered if we can get it in the spec, as I haven't seen any discussion on it or anything. :)

Re: Better sort spec?

2008-12-12 Thread Uri Guttman
TSN == Timothy S Nelson wayl...@wayland.id.au writes: TSN Hi all. I saw the new sort idea on the Rakudo blog: TSN http://www.rakudo.org/2008/12/its-sort-of-like.html TSN ...and wondered if we can get it in the spec, as I haven't TSN seen any discussion on it