stevan / p5-mop-redux

A(nother) MOP for Perl 5
139 stars 36 forks source link

Improvements for overloading #31

Open tobyink opened 11 years ago

tobyink commented 11 years ago
class Person {
       has $name is overload(q[""]);
}
doy commented 11 years ago

Can you rebase this one too?

stevan commented 11 years ago

I can't do it easily (assuming you are talking to me)

On Aug 9, 2013, at 12:17 PM, Jesse Luehrs notifications@github.com wrote:

Can you rebase this one too?

— Reply to this email directly or view it on GitHub.

doy commented 11 years ago

I was talking to @tobyink, as it's his pull request(:

stevan commented 11 years ago

Actually, I am really not a fan of the overload on attributes.

On Aug 9, 2013, at 12:43 PM, Jesse Luehrs notifications@github.com wrote:

I was talking to @tobyink, as it's his pull request(:

— Reply to this email directly or view it on GitHub.

stevan commented 11 years ago

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 stevan.little@iinteractive.com wrote:

Actually, I am really not a fan of the overload on attributes.

On Aug 9, 2013, at 12:43 PM, Jesse Luehrs notifications@github.com wrote:

I was talking to @tobyink, as it's his pull request(:

— Reply to this email directly or view it on GitHub.