Subject: bug#47552: 27.1; cl-defstruct field names matching read-only variables -> bad code

From: Michael Heerdegen <[email-masked]>
Date: Sun, 25 Jun 2023 05:43:07 +0200

Stefan Monnier <[email-masked]> writes:

> Damn!  OK, should work again now.  Sorry 'bout that.

Works, thanks.

One (very small) downside of the code generated now is that it may
trigger "Lexical argument shadows the dynamic variable" warnings.
'date' for example is bad as a slot name when "diary" is loaded.

I think these warnings can safely be ignored but I don't know if there
is a way to get rid of them (and there may be a lot since the
`defstruct' call is not the only place where a warning is emitted: also
some defined functions lead to those warnings).

Michael.