RE: A modest question

2004-01-09 Thread chromatic
On Thu, 2004-01-08 at 16:24, Jonathan Lang wrote:

 In this example, there's no difference between the Dog and Tree roles;
 however, this would almost certainly not be the case most of the time - at
 the very least, a class with a Dog role would have @.legs, while a class
 with the Tree role would have @.branches.  However, if all that happens
 when you specify a demand for the Dog role in a signature is that the
 object must meet Dog's demands, then both crossPerson and Trog will be
 accepted.  

I would consider that a mistake.

All that doing a role should imply is that somehow, that class
understands the syntax *and* semantics of the methods of that role. 
Introspection can't reliably reveal whether $some_object.bark accesses a
property (noun) or a method (verb).

It's true that looking for @.legs versus @.branches could get you
closer, but I'm not sure that it's been decided whether methods of a
role should blissfully ignore all of the object's state.  Besides, in a
delegation situation, there could easily be some sort of magic that
handles those attributes that the introspection mechanism might miss.

-- c



Re: Archive tarball?

2004-01-09 Thread Piers Cawley
Luke Palmer [EMAIL PROTECTED] writes:

 michael.firestone writes:
 Is there somewhere I can get the entire perl6-language archive in a 
 tarball? 

 I personally don't know, but there could be somewhere.

 I am trying to work on turning the Apocalypses into story cards at 
 http://p6stories.kwiki.org.  It would be helpful to me if I could search 
 the mailing list archives to make sure I incorporate any decisions made 
 after each Apocalypse was written.  As there is no search engine at this 
 moment ( that is not a whine or a complaint, merely a statement ), the next 
 best thing for me would be a tarball I could grep. 

 Well, most of the decisions you'll find in the official documents: the
 apocalypses, exegeses, and synopses.  perl6-language has a lot of
 brainstorming, and a lot of Larry saying something interesting in the
 form of maybe ..., but those could hardly be considered decisions.

 If worse comes to worst, you can always ask me.  I manage to keep the
 largest amount of the language in my head with the most time available
 to answer questions :-)

 Oh, and thanks for the p6stories work.

Of course the beauty of a Wiki is that you can just watch the
RecentChanges page, proof read the new stories for up to date
syntax and correct 'em as necessary.

-- 
Beware the Perl 6 early morning joggers -- Allison Randal


Properties for builtin types?

2004-01-09 Thread Michael Firestone
Is there a list of the properties for the builtin types?  My searches 
through the archives leads me to believe there is no such beast.  Is 
there any consensus on what some of the properties will be?  I am not 
looking for a complete or authoritative list.  I am just trying to 
finish off a section of the wiki and maybe write some test cases.

Thanks,
 Mik
PS - If this hits the list 4 times, it is my mail server not me.  No.  
Really.
---
Mik Firestone [EMAIL PROTECTED]
Marriage is what happens when blackmail is no longer effective -- 
Victoria Balloon ( my wife )