On Thu, Nov 05, 2020 at 11:00:39PM +0100, Alexander Burger wrote:
> Also, I see no reason why 'native' should not work with normal variable-args
> functions like printf() in pil21. As far as I see, it works fine.
> 
>    : (native "@" "printf" 'I "abc%d%s^J" (+ 3 4) (pack "X" "Y" "Z"))
>    abc7XYZ
>    -> 8

Well, this is not completely true. It works under certain conditions (if the
types of the calls stay the same, and the number of args is not increased in
subsequent calls). Even such cases can be handled though, by simply using a
fresh transient for the function argument symbol.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to