Anonymous | Login | 01-16-2021 15:54 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0007232 | [Squeak] Compiler | minor | always | 11-25-08 21:14 | 02-06-11 23:48 | ||||
Reporter | elhochme | View Status | public | ||||||
Assigned To | nicolas cellier | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.10.2 | ||||||
Summary | 0007232: Out of Scope error always displayed when I have a block where a local variable is declared and assigned to but not used. | ||||||||
Description |
I found the issue due to when I'm developing I'll hit "accept" in the middle before the method is completed. The issue is I declare a temp variable in a block and assign a value to it, but if I don't use it, then I get an out-of-scope error. If you put the following code on a class in the Class browser, and try to "accept" you'll get out-of-scope BEFORE ACCEPT: generateDoc | aDir | aDir := FileDirectory on:self directory. aDir directoryNames do:[ :dirName | | tmpDir | tmpDir := FileDirectory on:(aDir fullNameFor:dirName) ]. AFTER ACCEPT: generateDoc | aDir | aDir := FileDirectory on:self directory. aDir directoryNames do:[ :dirName | | tmpDir | tmpDir := FileDirectory on:(aDir fullNameFor:dirName) out of scope ->]. |
||||||||
Additional Information |
I'm using Squeak 3.10.2-7179 Discussion on #squeak occurred on November 25, 2008 around 4:00pm EST. BrianRice tried looking into it but mentioned I should file a bug and have someone more familiar with the Compiler look into it. |
||||||||
Attached Files | |||||||||
|
![]() |
|||||||||||
SYSTEM WARNING: Creating default object from empty value SYSTEM WARNING: Creating default object from empty value
|
![]() |
|
(0012808 - 97 - 97 - 97 - 197 - 197 - 197) KenCausey 11-26-08 00:01 |
I'm not certain but I believe the change in 0006704 harvested as update 7145 is the likely culprit. |
(0013863 - 56 - 62 - 62 - 62 - 62 - 62) nicolas cellier 09-07-10 19:18 |
Could not reproduce in trunk 4.2 Probably solved in 4.1 |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
52 total queries executed. 39 unique queries executed. |