From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 20144@debbugs.gnu.org
Subject: bug#20144: 25.0.50; Functions using fboundp not known to be defined
Date: Thu, 19 Mar 2015 15:27:45 -0400 [thread overview]
Message-ID: <jwv38504wq3.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <wvr4wq2dhtj2.fsf@phst2.muc.corp.google.com> (Philipp Stephani's message of "Thu, 19 Mar 2015 16:54:41 +0100")
severity 20144 wishlist
thanks
> (if (fboundp 'car)
> (defalias 'mycar 'car)
> (defun mycar (_l) (error "what")))
(defalias 'mycar
(if (fboundp 'car) 'car (lambda (_l) (error "what"))))
The difference is one of the two versions requires reasoning
(simple/trivial for you, but beyond the reach of the simple
byte-compiler we're using), whereas the other doesn't.
Admittedly, when you need to define two versions of a *set* of
functions, depending on a single test, the above trick of sinking the
testing into the `defalias' ends up being a bit ugly/inconvenient.
Stefan
prev parent reply other threads:[~2015-03-19 19:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 15:54 bug#20144: 25.0.50; Functions using fboundp not known to be defined Philipp Stephani
2015-03-19 17:52 ` Glenn Morris
2015-03-19 17:54 ` Glenn Morris
2015-03-19 19:27 ` Stefan Monnier [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv38504wq3.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=20144@debbugs.gnu.org \
--cc=p.stephani2@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.