See also my proposal in [1] to make a preference (or even a per-package rule) for displaying a pop-up for each shadowed variable. There is already <font color="#000000">ShadowedVariableNotification</font> which could be caught in the parser to display a dialog window.<br>
<br>
Best,<br>
Christoph<br>
<br>
<font color="#808080">---<br>
</font><font color="#808080"><i>Sent from </i></font><font color="#808080"><i><a href="https://github.com/hpi-swa-lab/squeak-inbox-talk"><u><font color="#808080">Squeak Inbox Talk</font></u></a></i></font><br>
<br>
On 2022-12-26T17:17:17-06:00, asqueaker@gmail.com wrote:<br>
<br>
> ><br>
> > Right now when a variable name is shadowed we only get a line appearing in<br>
> > the Transcript, which is alarmingly easy to miss. Given how many other<br>
> > alerts we get popping up for undeclared or unused variables, maybe we need<br>
> > to add one more for shadowing.<br>
> ><br>
> <br>
> Shadowed variables are not an issue, technically, just from the<br>
> code-clarity sense, which syntax-highlighting has now largely resolved.  I<br>
> think such fixes like these should be handled by the existing batch process<br>
> in the development cycle where one cleans the Lint out of one's code.  If<br>
> you must add yet another pop up for this, make sure loading a large package<br>
> with a lot of shadowed variables doesn't produce hundreds of such pop ups.<br>
> Which, of course, I guess you'd be back to a bunch of code with shadowed<br>
> variables with no way to identify them except the Transcript notifications<br>
> again.  So, maybe that's another reason to relegate this to the deLint'ing<br>
> stage.<br>
> <br>
> Best,<br>
>   Chris<br>
> <br>
> <br>
> ><br>
> ><br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20221226/59b8ca45/attachment.html><br>
> <br>