Anonymous | Login | 01-26-2021 03:11 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 | ||||||||
0004309 | [Squeak] Compiler | minor | always | 07-21-06 16:57 | 05-12-14 22:19 | ||||||||
Reporter | kwl | View Status | public | ||||||||||
Assigned To | nicolas cellier | ||||||||||||
Priority | normal | Resolution | fixed | ||||||||||
Status | resolved | Product Version | 3.9 | ||||||||||
Summary | 0004309: Compiler/Parser allows undefined variable when LHS to := | ||||||||||||
Description |
The following snippet does NOT raise an error message: | tmp1 tmp2 | tmp1 := 2. tmp2 := tmp2 + tmp1 But the following modification DOES raise an "undefined. proceed?" dialog | tmp1 tmp2 | tmp1 := 2. tmp1 := tmp2 + tmp1 Tested with 3.8 + 3.9. Note that the error message should speak about "uninitialized" instead of "undefined" because the variables are indeed between the |'s. |
||||||||||||
Additional Information | There can only be ONE rule for what is uninitialized and what is initialized, regardless of how a variable is used "mentioned" for the first time on the RHS of an expression. | ||||||||||||
Attached Files | |||||||||||||
|
![]() |
|
(0014499 - 102 - 102 - 102 - 102 - 102 - 102) nicolas cellier 05-12-14 22:19 |
This is no more true in Squeak 4.5, and probably has been fixed for a long time now (Eliot's closure?) |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
36 total queries executed. 31 unique queries executed. |