DEV Community

Discussion on: Perl6 Multi Method Signatures : Self Introspection

Collapse
 
jj profile image
Juan Julián Merelo Guervós

Sorry, Simon, I don't seem to be able to parse this:

Simple. We add it! You can define a name for your object to be used in a method but putting it at the start of the signature followed by :

Do you mean that you are creating $.archived and that the fact that is followed by : defines it?

Collapse
 
scimon profile image
Simon Proctor

I shall expand on that bit to explain it better.

Collapse
 
scimon profile image
Simon Proctor

Ok. I think that's got it.

Thread Thread
 
jj profile image
Juan Julián Merelo Guervós

Sorry again, Simon. The trailing colon separates (please check out the typo) the declaration from what?

Thread Thread
 
scimon profile image
Simon Proctor

I may have to work on the wording some more.

Thread Thread
 
scimon profile image
Simon Proctor

But you're separating the object from the other method arguments.

Collapse
 
jj profile image
Juan Julián Merelo Guervós

Thanks!