[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dotimes var comiler warning
From: |
Joost Kremers |
Subject: |
Re: dotimes var comiler warning |
Date: |
Thu, 24 Nov 2016 13:53:29 +0100 |
User-agent: |
mu4e 0.9.17; emacs 25.1.50.3 |
On Thu, Nov 24 2016, Andreas Röhler wrote:
when employing a form
(dotimes (i erg)
...do-something
Compiler sends a warning "Unused lexical variable ‘i’ - whilst
seems no
way to leave out such a var.
This seems to work:
(dotimes (_ erg)
...)
(info "(elisp) Using Lexical Binding") says:
,----
| (To silence byte-compiler warnings about unused variables,
just use a
| variable name that start with an underscore. The byte-compiler
| interprets this as an indication that this is a variable known
not to be
| used.)
`----
(Very bottom of the page)
HTH
--
Joost Kremers
Life has its moments