Credits patch
[p5sagit/p5-mst-13.2.git] / t / lib / Math / BigFloat / Subclass.pm
index ca9bbce..950c92d 100644 (file)
@@ -6,13 +6,15 @@ require 5.005_02;
 use strict;
 
 use Exporter;
-use Math::BigFloat(1.27);
+use Math::BigFloat(1.30);
 use vars qw($VERSION @ISA $PACKAGE
             $accuracy $precision $round_mode $div_scale);
 
 @ISA = qw(Exporter Math::BigFloat);
 
-$VERSION = 0.02;
+$VERSION = 0.03;
+
+use overload;          # inherit overload from BigInt
 
 # Globals
 $accuracy = $precision = undef;
@@ -34,4 +36,9 @@ sub new
         return $self;
 }
 
+BEGIN
+  {
+  *objectify = \&Math::BigInt::objectify;
+  }
+
 1;