in reply to Re^2: Overloading print()
in thread Overloading print()

Cool, thanks for the explanation.

So...it sounds as though the problem is problematic API. So the *real* fix is to refactor the underlying MPFR "output string" func to call a 'format to string' helper function, which you can then use for your stringification.

I appreciate that might not be easy/desirable/practical (mimicing the func in perl is probably easier), but hey.

Replies are listed 'Best First'.
Re^4: Overloading print()
by syphilis (Archbishop) on Sep 05, 2007 at 12:57 UTC
    ... the *real* fix is to refactor the underlying MPFR "output string" func to call a 'format to string' helper function

    At which point syphilis is thankful that it's impossible to panic oneself to death ....

    (Anyway, you're wrong ... the *real* fix is to delegate responsibility :-)))))))

    Cheers,
    Rob