From: Ilya Shlyakhter <ilya_shl@alum.mit.edu>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: CL package suggestion
Date: Sun, 8 Apr 2012 21:41:51 -0400 [thread overview]
Message-ID: <CACfYvRZ=PHh1v+a2guK9yxAfsrHS0V7u1gGtPDRzz-PZvNN4Eg@mail.gmail.com> (raw)
In-Reply-To: <CACfYvRZAT5fNt9KUA2n7uj2k_5aK_-z=NAcGL=0bcO5e+=zc4g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
I'm sorry, the example I gave is fine -- that code of course is executed at
compile-time only.
On Sun, Apr 8, 2012 at 9:39 PM, Ilya Shlyakhter <ilya_shl@alum.mit.edu>wrote:
> Right now, the cl package itself seems to violate the rule against calling
> its functions at runtime.
> E.g.
>
> (define-compiler-macro assoc* (&whole form a list &rest keys)
> ;; ...
> (if (floatp-safe (cl-const-expr-val a))
> ;; ...
>
> floatp-safe is a function in package cl, and the compiled code will call
> it at runtime.
> Am I missing something?
>
> On Wed, Apr 4, 2012 at 9:06 AM, Stefan Monnier <monnier@iro.umontreal.ca>wrote:
>
>> > Agree about cl- being better than ecl- .
>> > Btw, if remove-if becomes defalias'ed to cl-remove-if, aren't the two
>> calls
>> > indistinguishable to the byte compiler?
>>
>> The name is different, so the compiler can definitely tell the difference.
>>
>> > If they are, and calling cl-remove wouldn't trigger a warning,
>> > wouldn't remove-if calls also become warning-less?
>>
>> Not necessarily, no.
>>
>>
>> Stefan
>>
>
>
[-- Attachment #2: Type: text/html, Size: 1834 bytes --]
next prev parent reply other threads:[~2012-04-09 1:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 16:52 CL package suggestion Ilya Shlyakhter
2012-04-03 16:58 ` Glenn Morris
2012-04-03 17:00 ` Glenn Morris
2012-04-03 17:09 ` Ilya Shlyakhter
2012-04-03 18:58 ` Stefan Monnier
2012-04-04 1:56 ` Ilya Shlyakhter
2012-04-04 13:06 ` Stefan Monnier
2012-04-09 1:39 ` Ilya Shlyakhter
2012-04-09 1:41 ` Ilya Shlyakhter [this message]
2012-04-09 4:54 ` Ilya Shlyakhter
2012-04-09 13:28 ` Stefan Monnier
2012-04-09 14:38 ` Ilya Shlyakhter
2012-04-09 16:24 ` Stefan Monnier
2012-04-09 16:45 ` Ilya Shlyakhter
2012-04-09 16:54 ` Ilya Shlyakhter
2012-04-10 12:51 ` Stefan Monnier
2012-04-11 4:18 ` Richard Stallman
2012-04-11 14:12 ` Ilya Shlyakhter
2012-04-11 14:32 ` Stefan Monnier
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='CACfYvRZ=PHh1v+a2guK9yxAfsrHS0V7u1gGtPDRzz-PZvNN4Eg@mail.gmail.com' \
--to=ilya_shl@alum.mit.edu \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.