From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: about "assignment to free variable"
Date: Tue, 05 Feb 2019 08:56:06 -0500 [thread overview]
Message-ID: <jwvmunabaw6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: 87munaelia.fsf@mugno.i-did-not-set--mail-host-address--so-tickle-me
> When i compile a piece of code the byte-compiler reports a warning
> telling me that i'm trying to assign to a free variable:
> But the variable in question is, atleast i think, referred to a local
> variable because it is an argument of the function.
I think your "at least I think" is in error. But you'd have to show me
the relevant code.
"*free* variable" doesn't mean "a variable which will not exist when this
code is run" but "a variable which is not visible in the surrounding scope".
> The code works fine even if compiled.
Until it doesn't.
> If it is necessary i can post the code, even if it is large.
Pointing me to the relevant file+linenb should be sufficient.
Stefan
next prev parent reply other threads:[~2019-02-05 13:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-05 7:34 about "assignment to free variable" Michelangelo Rodriguez
2019-02-05 13:56 ` Stefan Monnier [this message]
2019-02-05 15:02 ` Stefan Monnier
2019-02-05 21:27 ` Michelangelo Rodriguez
2019-02-05 21:49 ` Stefan Monnier
2019-02-05 15:05 ` Michelangelo Rodriguez
2019-02-05 15:34 ` Michael Heerdegen
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=jwvmunabaw6.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/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.