help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dotimes var comiler warning


From: Emanuel Berg
Subject: Re: dotimes var comiler warning
Date: Thu, 24 Nov 2016 21:51:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Michael Heerdegen <address@hidden> writes:

> Andreas Röhler <address@hidden> 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 -                   




reply via email to

[Prev in Thread] Current Thread [Next in Thread]