Hi all,
Possibly this is a bug. To reproduce it download a Pharo-Core (I'm
using #11045), update from servers and evaluate:
CompiledMethod allInstances first getSource asString
if you see something like the following result, some things could be wrong:
'(firstCollection at: index) equals: a.
self assert: (secondCollection at: index) equals: b.]
'
because that isn't a message pattern. The compiled method instance is
(BlockClosure>>#newProcess "a CompiledMethod(1962)")
and the source string is in PharoV10.sources, but
#fileIndexFromSourcePointer: is answering "2" which is the changes
file and should answer "1"... someone with a better understanding of
sources arithmetic may comment.
Cheers,
Hernán
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project