On Mon, 23 Dec 2019, Sven Schreiber wrote:
Hi,
this is on the Dec 14th snapshot, haven't tested on newer release, sorry.
<hansl>
string s2 = sprintf("\"hey\"")
string snull = 1 ? s2 : "null"
print snull # "hey", as expected
# short form with anonymous sprintf
string snull = 1 ? sprintf("\"hey\"") : "null" # error
print snull
</hansl>
Hmm, that's a bug, but not so easy to fix. sprintf() is tricky to
handle because it's a "varargs" function (could have any number of
arguments). I can sort of envisage a fix but before I apply it to
git I need to ensure it doesn't have any bad fallout.
Allin