2012/12/29 Frank Shearar frank.shearar@gmail.com:
On 29 December 2012 14:28, Nicolas Cellier nicolas.cellier.aka.nice@gmail.com wrote:
2012/12/29 Frank Shearar frank.shearar@gmail.com:
On 29 December 2012 14:19, Nicolas Cellier nicolas.cellier.aka.nice@gmail.com wrote:
This looks like decompiled code...
That, and also note that the error's right the token "_r5", making me think of the underscore-in-selector preference.
frank
That would not be a solution because Decompiler messed temp var names and declaration. We shall better not trust the Decompiled code in this case... I thought this issue was solved, but my memory is more selective than an issue tracker ;)
I meant that it could be a confounding factor, not a workaround.
It seems sensible that decompilable code ought always to be compilable. Further, I'd expect (assuming no Compiler changes) that the original bytecode and the decompiled-recompiled bytecode to be identical.
frank
Ideally yes. But see DecompilerTests>>#decompilerFailures and usage...
Nicolas
Nicolas
Why recompileAll could not find the source?
Nicolas
2012/12/29 H. Hirzel hannes.hirzel@gmail.com:
The screen shot
On 12/29/12, H. Hirzel hannes.hirzel@gmail.com wrote:
For testing I deleted the #roll method of class Random. Then Compiler recompileAll fails with another method. See screen shot
And the same happens with March 2012 version http://ftp.squeak.org/4.4alpha/Squeak4.4-11925.zip
So the error was introduced in between December 23, 2011 and March 2012 or alternatively it has something to do with the VM version.
On 12/29/12, H. Hirzel hannes.hirzel@gmail.com wrote: > And in a pristine 4.3 image > Compiler recompileAll > runs fine. > > On 12/29/12, Frank Shearar frank.shearar@gmail.com wrote: >> On 29 December 2012 08:40, H. Hirzel hannes.hirzel@gmail.com wrote: >>> Hello >>> >>> TEST: >>> Evaluate >>> >>> Compiler recompileAll >>> >>> in a Workspace >>> in version Squeak4.4-12324. >>> >>> >>> RESULT: >>> >>> Brings up a syntax error >>> >>> Method #roll: in class Random does not compile. >> >> Oddly, it does compile if you touch the source (delete the last >> character and replace it) in a Browser and accept. >> >> frank >> >>> Neither does it compile this version >>> http://ftp.squeak.org/4.4alpha/Squeak4.4-11925.zip (March 2012). >>> >>> >>> NOTE: >>> >>> I found out about this because I was running >>> >>> Smalltalk unloadAllKnownPackages >>> >>> in version Squeak4.4-11925 >>> >>> >>> --Hannes >>> >> >> >