Skip Menu |

This queue is for tickets about the Math-Decimal CPAN distribution.

Report information
The Basics
Id: 62187
Status: open
Priority: 0/
Queue: Math-Decimal

People
Owner: Nobody in particular
Requestors: james2vegas [...] aim.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: overload operators (and 'constant') for Math::Decimal
It would be nice if you were able to pass in :overload to Math::Decimal->import and have constants that match the regexes in this module automatically be blessed into Math::Decimal objects, and be able to do standard operations on them and have them be translated into the dec_* functions.
Subject: Re: [rt.cpan.org #62187] overload operators (and 'constant') for Math::Decimal
Date: Sat, 16 Oct 2010 11:20:25 +0100
To: James Wright via RT <bug-Math-Decimal [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
My todo list already has a note about this. I want to have a pragma that makes numeric literals and arithmetic operators work in the Math::Decimal way. It's not really overloading, though, and there's no blessing involved (there's no such thing as a Math::Decimal object). -zefram