From: don provan <dprovan@comcast.net>
Subject: Re: Suggestions? Better filetype sniffing -- XHTML vs. HTML
Date: Thu, 15 Sep 2005 09:25:50 -0700 [thread overview]
Message-ID: <u7jditi0h.fsf@comcast.net> (raw)
In-Reply-To: 7e4q8qu35x.fsf@ada2.unipv.it
Thien-Thi Nguyen <ttn@glug.org> writes:
> (setq f '(+ 1 2 3))
> (funcall f)
>
> would also be "valid", which it is not.
I've kinda forgotten what we're talking about now, but I think the
question was something about using concepts about function addressing
learned from C as a way of explaining quoted function names when
learning lisp. So you would only think the above is valid if you
thought
extern int func(int, int, int);
int (*f)(int, int, int);
f = func(1, 2, 3); /* or perhaps "&func(1, 2, 3)" */
(*f)();
was valid in C, which it is not. Quoting an expression is really quite
a bit different than quoting a function name, so I don't really see
any reason to worry about the two being confused.
Granted, what is completely unexpected to a C programer is that
(setq f '(+ 1 2 3))
(eval f)
is valid and does do just what it looks like it does.
-don
next prev parent reply other threads:[~2005-09-15 16:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-24 14:56 Suggestions? Better filetype sniffing -- XHTML vs. HTML D. D. Brierton
2004-02-24 16:47 ` Kin Cho
2004-02-24 17:16 ` D. D. Brierton
2004-02-24 17:31 ` Kin Cho
2004-02-24 17:46 ` D. D. Brierton
2005-05-27 14:29 ` slashdevslashnull
[not found] ` <mailman.2088.1117208718.25862.help-gnu-emacs@gnu.org>
2005-05-27 23:39 ` Thien-Thi Nguyen
2005-05-31 6:52 ` don provan
2005-09-12 7:59 ` Thien-Thi Nguyen
2005-09-15 16:25 ` don provan [this message]
2004-02-24 17:11 ` 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=u7jditi0h.fsf@comcast.net \
--to=dprovan@comcast.net \
/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.