p5-mop-redux
p5-mop-redux copied to clipboard
Improvements for overloading
- Test cases for overloading, including a TODO (for which I'll file a separate issue).
- Allow attributes to take part in overloading without needing an accessor. This only makes sense for unary-like overloads.
class Person {
has $name is overload(q[""]);
}
Can you rebase this one too?
I can't do it easily (assuming you are talking to me)
On Aug 9, 2013, at 12:17 PM, Jesse Luehrs [email protected] wrote:
Can you rebase this one too?
— Reply to this email directly or view it on GitHub.
I was talking to @tobyink, as it's his pull request(:
Actually, I am really not a fan of the overload on attributes.
On Aug 9, 2013, at 12:43 PM, Jesse Luehrs [email protected] wrote:
I was talking to @tobyink, as it's his pull request(:
— Reply to this email directly or view it on GitHub.
Actually, I am okay with this if we explicitly check for unary operators and die on all others.
A test case for ++ and -- would be nice as those are two operators that would maybe make sense for this.
Also maybe %{} and family as well.
On Aug 9, 2013, at 12:45 PM, Stevan Little [email protected] wrote:
Actually, I am really not a fan of the overload on attributes.
On Aug 9, 2013, at 12:43 PM, Jesse Luehrs [email protected] wrote:
I was talking to @tobyink, as it's his pull request(:
— Reply to this email directly or view it on GitHub.