Re: Question of the day N1: DECLAIM and SETF

Richard M Kreuter via Sbcl-help <[email protected]>
Newsgroups gmane.lisp.steel-bank.general
Message-ID <[email protected]>
Marco Antoniotti <[email protected]> wrote:

> CL-USER> (declaim (ftype (function (t) t)) (setf fooxx))
> WARNING: unrecognized declaration (SETF FOOXX)
> ; No value
> 
> Now.  AFAIU this should be allowed (yes, the function FOOXX does not take any parameters).

Hi Marco,

That FTYPE declaration specifier establishes that zero functions have
the type, (FUNCTION (T) T). Probably a typo for this, right?

  (declaim (ftype (function (t) t) (setf foox)))

Regards,
Richard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.