[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cc-vars.el
From: |
Miles Bader |
Subject: |
Re: cc-vars.el |
Date: |
20 Nov 2002 11:22:13 +0900 |
Martin Stjernholm <address@hidden> writes:
> > /.../ A few extra fboundp checks at load-time are so utterly
> > inconsequential that it's hardly worth worrying about the possibility that
> > they might be generated in some cases.
>
> What makes you think they are restricted to load time code?
The idioms I'm thinking of are:
(if (fboundp 'foo)
(foo bar)
(foo-work-around bar))
which will work for `when' too, due to macroexpansion:
(when (fboundp 'foo)
...do stuff...
(foo bar)
...do more stuff...)
I'd probably make it work for `and' too, so you could do:
(and (fboundp 'foo) (foo bar))
What case do you have in mind where these aren't sufficient?
Can you give examples?
> What would be the problem of adding a macro in the bytecomp
> environment to control the warning aspect only? That has to be
> simpler than recognizing the if-form. It's not like it's an either-or
> issue between two irreconcilable solutions.
No, but let's not add both unless it's actually necessary.
-Miles
--
Come now, if we were really planning to harm you, would we be waiting here,
beside the path, in the very darkest part of the forest?
- Re: cc-vars.el, Kenichi Handa, 2002/11/17
- Re: cc-vars.el, Richard Stallman, 2002/11/18
- Re: cc-vars.el, Dave Love, 2002/11/18
- Re: cc-vars.el, Martin Stjernholm, 2002/11/18
- Re: cc-vars.el, Miles Bader, 2002/11/18
- Re: cc-vars.el, Martin Stjernholm, 2002/11/19
- Re: cc-vars.el, Miles Bader, 2002/11/19
- Re: cc-vars.el, Martin Stjernholm, 2002/11/19
- Re: cc-vars.el,
Miles Bader <=
- Re: cc-vars.el, Stefan Monnier, 2002/11/20
- Re: cc-vars.el, Kim F. Storm, 2002/11/20
- Re: cc-vars.el, Stefan Monnier, 2002/11/20
- Re: cc-vars.el, Kim F. Storm, 2002/11/20
- Re: cc-vars.el, Dave Love, 2002/11/24
- Re: cc-vars.el, Dave Love, 2002/11/24
- Re: cc-vars.el, Miles Bader, 2002/11/20
- Re: cc-vars.el, Stefan Monnier, 2002/11/20
- Re: cc-vars.el, Martin Stjernholm, 2002/11/21
- Re: cc-vars.el, Richard Stallman, 2002/11/21