[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New warning from compiler about loop variables
[Thread Prev] | [Thread Next]
- Subject: Re: New warning from compiler about loop variables
- From: Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
- Date: Tue, 29 Sep 2026 13:31:56 +0300
- To: user@xxxxxxxxxxxxxxxxxxxxxx
> For X as Integer = 1 to 12 ' X is declared as a *new Integer local to the loop* > do something > Next > Print X ' Prints 123 > > I don't think so... At least the memory address do not change and thus what would be the issue? Dim n As Integer Print "initial; ";; VarPtr(n) For n As Integer = 0 To 0 Print "inside; ";; VarPtr(n) Next Print "at the end; ";; VarPtr(n) Jussi >
| Re: New warning from compiler about loop variables | brian <brian@xxxxxxxxxxxxxxxx> |
| New warning from compiler about loop variables | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: New warning from compiler about loop variables | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: New warning from compiler about loop variables | BB <adamnt42@xxxxxxxxx> |