New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document use of method invocant to distinguish between class and object methods #1121
Comments
Hi, I think I can help out on this. I suppose this would be elaborated more on Object Orientation, to keep the class tutorial simple? |
Sounds good. Perhaps in the Methods section? |
Yep, that section sounds good. And since |
Add documentation on setting invocant in method signatures, using type constraints to define class and object methods, and using multi declarator for defining same-name class and object methods. Fixes Raku#1121.
Add documentation on setting invocant in method signatures, using type constraints to define class and object methods, and using multi declarator for defining same-name class and object methods. Fixes #1121.
Move to "Class and Instance Methods" section after Classes/self. PR discussion: #1495 (comment) |
@ronaldxs I have the change to add header (after EDIT: mixup 😹 |
planning to close soon if no objection ... |
See also perl6/roast #217 and IRC.
The technique is sometimes used by examples in the docs but not really described in either of Classes and Objects or Object Orientation. It would seem helpful to have it discussed directly someplace where someone might look for it.
The text was updated successfully, but these errors were encountered: