2 ms·
Hm, i guess this depends on the compiler, but if that was the case then first use should be enough to figure out this. I guess classic Delphi had a very simple
by badsectoracula 6y ago
Hm, i guess this depends on the compiler, but if that was the case then first use should be enough to figure out this. I guess classic Delphi had a very simple compiler so perhaps it needs this, but AFAIK modern Delphi has an LLVM backend whose optimizations shouldn't be affected by variable placement.
In any case, i think Free Pascal does have variable lifetime analysis so its optimizations shouldn't need that either.