[Harbour] 2008-11-01 21:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

Viktor Szakáts harbour.01 at syenar.hu
Sat Jan 24 11:10:28 EST 2009


Hi Mindaugas,
If the function is fully C compatible, HB_SPRINTF() is okay,
but if it's not I'd rather use HB_STRFORMAT() to avoid any
confusion. Since Harbour programming and needs are somewhat
different from C I would think we cannot (and it's rather pointless to)
go for full compatibility, so it'd be better to just say the Harbour
formatting syntax is _inspired by_ the C syntax, but it's a slightly
different thing (and may have additional/incompatible extensions in
the future). Such extension in the future might be to support
regular Harbour picture strings: '%1$s{"!"}' (syntax glue is just a
quick example).

BTW, we need to reserve hb_sprintf() C level function name for
a real printf() compatible C level implementation to eventually
remove dependency on C RTL printf() functions.

So my vote overall is hb_StrFormat() for C level and HB_STRFORMAT()
for .prg level function name.

Brgds,
Viktor

On Fri, Jan 23, 2009 at 6:28 PM, Mindaugas Kavaliauskas
<dbtopas at dbtopas.lt>wrote:

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.harbour-project.org/pipermail/harbour/attachments/20090124/9dd9602c/attachment-0001.html


More information about the Harbour mailing list