Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pudge (1)

pudge
  (email not shown publicly)
http://pudge.net/
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Friday May 10, 2002
07:21 AM

The Sfio And The Bizarre

[ #4812 ]

So Matthias asked me, well, if we don't need SFIO for MacPerl's IO anymore, can we just not link with it it? I don't know, I replied, but ... doesn't SFIO provide our implementation of sprintf? I thought perl supplied sprintf now, he said. Sorta, I responded, but not for %e, %f, %g. Those are still handled with your local implementation.

I don't know if not linking to SFIO would cause other problems -- I'd probably need to fix a few things here and there, plus the MacPerl app still relies on it for one or two things -- but we need to link to it if for no other reason that we need it for sprintf. Yow!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Sooo... are you saying that

    1. SFIO really does come with an (IEEE-float-aware) bit-level implementation of floating point output?
    2. There is no %efg support at all in the MacOS Classic "libc"? (whatever that means in MacOS Classicese...)
    3. both?
    • SFIO does implement efg, though not very well (there are a few bugs, at least in the SFIO version we use, which is 98 IIRC). Mac OS's standard library has no efg support, or so I am told.
      • That MacOS standard library does no efg is a bit hard to believe. But having never programmed a single C program in MacOS Classic, who am I to argue :-)
        • Yeah, I found it a bit odd too. However, if I ever feel inclined to try to completely sever the tie to sfio, I'll look more into it. We have PerlIO working now, which is the real objective.