Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007161 [Squeak] Compiler tweak always 08-25-08 10:43 01-10-09 02:13
Reporter kwl View Status public  
Assigned To
Priority normal Resolution fixed Platform
Status pending   OS
Projection none   OS Version
ETA none Fixed in Version Product Version
  Product Build
Summary 0007161: Compilation nils Undeclared variables unconditionally
Description when building a script there suddenly ways this situation:

- some methods where compiled, they had Undeclared variables (shown in
Transcript)

- an expression in the script initilized these variables with values ~= nil

- some more methods where compiled, referencing the still undeclared
variables

Bang! the values from the initialization step where nil again :(

- (here the script was aborted because it would never work).

Why are the variables nil'ed again by the compiler, or is it a bug? One
would expect that the compiler touches the values in Undeclared only if
their variables do not already exist. Instead, it nils them time and again.

Example expressions for reproducing the situation (formulated for
non-interactive use, no popups), checked they do the same in 3.10.2, 3.9
and 3.8 stock images:

  (Compiler evaluate: 'YourNameGoesHere := Object new' logged: true)

  (nil class compile: 'methName ^YourNameGoesHere' classified:
#'*YourPackageNameGoesHere')

then inspect Undeclared.
Steps To Reproduce
Additional Information happens in method Encoder>>#undeclared:, fix is attached.
Attached Files  Encoder-undeclared.kwl.M7161.cs [^] (643 bytes) 08-25-08 10:45

- Relationships

- Notes
(0012524 - 12 - 12 - 12 - 12 - 12 - 12)
kwl
08-25-08 10:47

uploaded fix
 
(0012794 - 171 - 218 - 344 - 344 - 344 - 344)
kwl
11-24-08 08:58

Encoder>>#undeclared: was been fixed with

 Undeclared at: sym ifAbsentPut: nil.

in the compiler extensions of the new FFI

- http://www.squeaksource.com/Alien.html [^]
 
(0012809 - 90 - 122 - 122 - 122 - 122 - 122)
Keith_Hodges
11-26-08 02:49

"fix begin"
Installer mantis bug: 7161 fix: 'Encoder-undeclared.kwl.M7161.cs'.
"fix end"
 

- Issue History
Date Modified Username Field Change
08-25-08 10:43 kwl New Issue
08-25-08 10:45 kwl File Added: Encoder-undeclared.kwl.M7161.cs
08-25-08 10:47 kwl Note Added: 0012524
08-25-08 10:47 kwl Resolution open => fixed
11-24-08 08:58 kwl Note Added: 0012794
11-24-08 08:58 kwl Status new => acknowledged
11-26-08 02:49 Keith_Hodges Note Added: 0012809
01-10-09 02:13 Keith_Hodges Status acknowledged => pending


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
45 total queries executed.
33 unique queries executed.
Powered by Mantis Bugtracker