> What we really need is our own s(n?)printf:
> 
>       Parrot_sprintf(target, "%I + %F - %I", foo, bar, baz);
>               /* or some such nonsense */
> or even:
>       target=Parrot_sprintf("%I + %F - %I); /* like Perl's built-in */
> 
> That way, it could even handle Parrot strings natively, perhaps with a
> %S code.
> 
> By the way, Windows sems to have an _snprintf function with the same
> arguments.  The leading underscore is beyond me.  *shrugs*

It may be a good idea to have our own version of vsnprintf(). I know
the windows version does not handle infinity and nan well. The precision
of floating point may be different on different platforms.

BTW, MSVCRT has several functions with leading _, such as _isnan,
_finite, and snprintf.

Hong

Reply via email to