perl5i: Add methods to work with overloading The Perl Foundation
Status: Reopened Time to complete: 48 hrs Mentors: Paul Johnson, Florian Ragwitz, Michael G Schwern Tags: perl5i, Michael G Schwern

See perl5i: Add methods to work with overloading

overload.pm has three functions which would be handy in Object.

my $is_overloaded = $object->is_overloaded(); Returns true if the object is overloaded, false otherwise. Just overloaded::Overloaded().

my $code = $object->is_overloaded($op); Returns the method which implements $op, if its overloaded. False otherwise. overload::Method()

And a method to return the string value of the object in the absence of overloading. overload::StrVal(). Don't know what the method should be.

Uploaded Work
No work has been uploaded yet.
Comments
Task Claimed by Piotr December 1 2011 12:29 UTC

I would like to work on this task.

Task Assigned by Paul Johnson December 1 2011 12:31 UTC

This task has been assigned to Piotr. You have 48 hours to complete this task, good luck!

"Easy" by Michael G Schwern December 2 2011 17:32 UTC

This task was originally marked "easy" assuming some knowledge of overloaded objects in Perl, just to let ya know.

Updated the spec by Michael G Schwern December 2 2011 17:49 UTC

I've updated the issue on Github with more detailed instructions.  https://github.com/schwern/perl5i/issues/72  Please follow the preferred workflow so the whole probject can participate in  what you're doing and review interactively.  https://github.com/schwern/perl5i/wiki/Preferred-Workflow  If you can, talk with us on IRC.  We're on irc.perl.org channel #perl5i.

Initial Deadline passed by Melange December 3 2011 12:31 UTC

Melange has detected that the initial deadline has passed and it has set the task status to ActionNeeded. The student has 24 hours to submit the work before the task is reopened and sent back to the pool for other students to claim.

Claim Removed by Piotr December 3 2011 12:41 UTC

The claim on this task has been removed, someone else can claim it now.

Task Claimed by Prashan Dharmasena December 7 2011 01:58 UTC

I would like to work on this task.

Task Assigned by Michael G Schwern December 7 2011 09:17 UTC

This task has been assigned to Prashan Dharmasena. You have 48 hours to complete this task, good luck!

Initial Deadline passed by Melange December 9 2011 09:17 UTC

Melange has detected that the initial deadline has passed and it has set the task status to ActionNeeded. The student has 24 hours to submit the work before the task is reopened and sent back to the pool for other students to claim.

Task Reopened by Melange December 10 2011 09:17 UTC

Melange has detected that the final deadline has passed and it has reopened the task.