On Fri, 21 Dec 2018, Sven Schreiber wrote:
Am 21.12.2018 um 19:57 schrieb Allin Cottrell:
> On Fri, 21 Dec 2018, Sven Schreiber wrote:
>> am I missing something or why is the following giving me some numbers?
>> eval printf("\n")
>> eval printf("\n---\n")
>> eval printf("\n--- \n")
> Because the printf() function returns the number of characters printed.
Right, mixed up with the sprintf() function and/or the (result action of the)
BTW, the printf() function does not appear in the function reference, only
the command version.
The function form of printf is not particularly recommended; in fact
it's just syntactic sugar for the command form. I didn't want to
remove it in case anyone was using it, but neither did I want to
encourage its use by documenting it -- so I'm afraid it's in limbo.
If it turns out that nobody is actually using it, it could be
removed so far as I'm concerned.