unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: dotimes var comiler warning
Date: Thu, 24 Nov 2016 21:51:14 +0100	[thread overview]
Message-ID: <87fumgvby5.fsf@debian.uxu> (raw)
In-Reply-To: 878ts957gj.fsf@web.de

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>> 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.
>> Worth a bug-report?
>
> If none exists yet, I'm for it. FWIW, there is
> a FIXME comment in the source code already.
>
> Yes, you can probably use `_' to suppress the
> warning, but I always wondered why something called
> like this requires a variable to be specified
> (mandatorily) at all.

What about:

    (cl-loop do (message "High Five") repeat 4)

?

-- 
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 26 Blogomatic articles -                   




      parent reply	other threads:[~2016-11-24 20:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-24 12:47 dotimes var comiler warning Andreas Röhler
2016-11-24 12:53 ` Joost Kremers
2016-11-24 13:59   ` Andreas Röhler
2016-11-24 13:32 ` Michael Heerdegen
2016-11-24 14:14   ` Andreas Röhler
2016-12-01 23:08     ` Emanuel Berg
2016-11-24 20:51   ` Emanuel Berg [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fumgvby5.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).