(assert
(ctype:ctype=
(ctype:cfunction (make-instance
'ctype:lambda-list
:required ()
:optional ()
:rest (ctype:bot)
:keyp t
:keys (list (cons 'var (ctype:specifier-ctype 'integer)))
:aokp nil)
(ctype:values-specifier-ctype '(values integer &rest t)))
(ctype:specifier-ctype
'(function (&key (var integer)) integer))))
The assertion
(ctype:ctype=
#<ctype:cfunction (function (&key (var integer))
(values integer &rest t))>
#<ctype:cfunction (function (&key (var integer))
(values integer &rest t))>)
That looks a bit funky to me. Similar experiments work for required, optional, and rest style parameters. Is there something I'm missing when it comes to the keyword parameters?
That looks a bit funky to me. Similar experiments work for required, optional, and rest style parameters. Is there something I'm missing when it comes to the keyword parameters?