From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Helmut Eller <eller.helmut@gmail.com>
Cc: 16520@debbugs.gnu.org
Subject: bug#16520: 24.3.50; cl-defstruct with :predicate option
Date: Wed, 29 Jan 2014 08:59:52 -0500 [thread overview]
Message-ID: <jwva9eec2k3.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <m2ha8nxg3b.fsf@gmail.com> (Helmut Eller's message of "Wed, 29 Jan 2014 11:00:40 +0100")
> The fix doesn't work for this example:
> (require 'cl-lib)
> (cl-defstruct (foo (:predicate foo?)))
> (defun bar (x) (cl-check-type x foo))
Indeed. But it should work for:
(require 'cl-lib)
(cl-defstruct (foo (:predicate foo?)))
(defun bar (x) (cl-check-type x foo?))
> neither for
> (cl-defstruct (foo (:predicate nil)))
Not sure if it should work in that case,
Stefan
next prev parent reply other threads:[~2014-01-29 13:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-22 10:06 bug#16520: 24.3.50; cl-defstruct with :predicate option Helmut Eller
2014-01-22 13:47 ` Stefan Monnier
2014-01-23 15:02 ` Stefan Monnier
2014-01-29 10:00 ` Helmut Eller
2014-01-29 13:59 ` Stefan Monnier [this message]
2014-01-29 17:47 ` Helmut Eller
2014-01-30 3:58 ` Stefan Monnier
2014-01-30 12:07 ` Helmut Eller
2014-01-30 14:43 ` Stefan Monnier
2014-01-30 22:33 ` Helmut Eller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwva9eec2k3.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=16520@debbugs.gnu.org \
--cc=eller.helmut@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).