GNU bug report logs -
#39919
26.3; Incorrect byte-compiler warning
Previous Next
Reported by: Mike Woolley <mike <at> bulsara.com>
Date: Thu, 5 Mar 2020 00:02:02 UTC
Severity: minor
Merged with 16206,
31232,
41287
Found in versions 24.3, 26.3, 28.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Richard Stallman <rms <at> gnu.org> writes:
> I can't easily obtain that discussion. Perhaps that discussion
> turned up some other reason to deprecated that argument.
Yes: the reason was that it's not very useful, the order of
execution is strange, and it's easy to avoid, so, to cite Stefan, "Which
is why I think the current behavior of complaining when the third field
is used (except in the very rare case where the third field refers to
the iteration variable) is a fairly good compromise."
> But if it was solely to avoid these warnings, I am surprised it is
> hard.
>
> Does this patch fix the problem?
Yes, that should work. I don't consider it a good fix because it just
hides the underlying problem (I guess that's why the original author
added the FIXME instead of fixing it in this obvious way). We have
manifestations of the same issue in other places that, AFAIR, can't be
fixed in the same way.
Anyway, I think the warning currently raised is not helpful, it is
confusing if you didn't read the related bug reports. I guess we could
just say that the argument is deprecated. Maybe that didn't happen
because dotimes in Common Lisp has that third argument too (as mentioned
in the other reports).
Michael.
This bug report was last modified 4 years and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.