[cffi-devel] Re: varargs (again)

Luís Oliveira luismbo at gmail.com
Fri Jan 13 12:54:12 UTC 2006


"Hoehle, Joerg-Cyril" <Joerg-Cyril.Hoehle at t-systems.com> writes:
> Luis Oliveira wrote:
>>  (defcfun "xmlParserError" :void (ctx :pointer) (msg :string))
>> (defun xml-parser-error (control-string &rest args) (xmlParserError
>> <whatever-a-ctx-is> (format nil "~?" control-string args)))
>
> Here you allow your application to crash when given strings containing
> "%" characters. 

Oops. Um, I would have never made that mistake when my primary
programming language was C! :-)

-- 
Luís Oliveira
luismbo (@) gmail (.) com
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt




More information about the cffi-devel mailing list