wish: Parrot_sprintf_format %-XX{...%d...}

2004-07-13 Thread Hans Ginzel
Hello, I noticed recently a discusion about *printf*() function. I wish to be able to specify formating of groups of parameters. Eg. printf("Date: %11{%d.%d. %4d}, City: %s\n", $day, $mounth, $year); Variables $day and $mounth could be one or two digits. There should not b

Parrot_sprintf_format ...

2004-07-12 Thread Leopold Toetsch
... doesn't know BigInt. You can't format: Parrot_sprintfc(interp, "%Pd", big_pmc) There are some long modifiers, but they are useles for PMC.s You don't know the integer size of PMCs. So the whole concept of spf_render, spf_vtable needs modificatioms to take care of such cases. I'd say that: