Front page | perl.perl6.language |
Postings from February 2009
Re: Masak's S29 list
Thread Previous
|
Thread Next
From:
Timothy S. Nelson
Date:
February 27, 2009 01:19
Subject:
Re: Masak's S29 list
Message ID:
alpine.LRH.1.10.0902272016420.4781@gwalcmai.nelson.org.au
On Fri, 27 Feb 2009, Moritz Lenz wrote:
>> # Code has a .sig
>>
>> Seems (from what I can tell) to be synonymous with .signature, so I
>> standardised on .signature.
>
> This leads me to another question - afaict we also have .arity on the
> code object, but shouldn't that be method on the .signature instead? Do
> we have any methods in Code that are not related to the signature?
[reorg]
>> # Block types have .next, .last, .redo and .leave on them. These are also
>> functions, and need to be specced as such.
>
> Ah, that answers my previous question already ;-)
No it doesn't. Block and Code are different (see S02). But have a
look over the S32/Callable.pod document, and you may find that you have an
answer. Also, some of the things that I wasn't able to cope with on masak's
list may be relevant here.
>> # .ACCEPTS and .REJECTS on most everything -- provided by the Pattern role.
>> Likely a mistake to put one under each section, though. Perhaps put one under
>> Object and put a reference to S03.
>>
>> What does Pattern? Should we have Object does Pattern?
>
> If everything does Pattern, I see no good reason to have a role at all -
> just stuff the thing into Object.
Exactly, but I thought I'd better ask; I assumed it really went
somewhere else, and I just hadn't understood.
>> # .match, .subst and .trans from S05.
>>
>> Now in S32/Str.pod. But I wasn't sure what subst() returns.
>
> The modified string. (It doesn't do in-place substitution by default).
Spec modified.
:)
---------------------------------------------------------------------
| Name: Tim Nelson | Because the Creator is, |
| E-mail: wayland@wayland.id.au | I am |
---------------------------------------------------------------------
----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V-
PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----
Thread Previous
|
Thread Next