[squeak-dev] odd bug in Squeak 4.3, also in Pharo 1.3?...

Bob Arning arning315 at comcast.net
Fri Mar 2 22:57:29 UTC 2012


If you change

MethodReference>>sourceString so that it looks like this:

sourceString

     self methodSymbol = #Comment ifTrue: [^self actualClass comment].
     ^ (self actualClass sourceCodeAt: self methodSymbol) asString

your code will run in Squeak 4.2 and presumably 4.3.

Cheers,
Bob

On 3/2/12 3:57 PM, Lawson English wrote:
> On 3/2/12 5:55 AM, Nicolas Cellier wrote:
>> Transcript print: ... ; cr; endEntry
> myNav := SystemNavigation default.
> (myNav allMethodsWithSourceString: '"' matchCase: false) do:
>     [:each| Transcript show: each asString -> ( each  actualClass
> commentsIn: each sourceString);cr;endEntry ]
>
> Still generates the error MNU: ComentReference>>sourceString
>
> On Pharo 1.3
>
> Still generates the error: MNU: Key not found: Comment
>
> On Squeak 4.3
>
>
>
> AFTER many hundreds of lines of valid output.
>
> In the same place as before in both images with 2 different VMs.
>
>
>
> Are you testing the code you are writing and not seeing the error?
>
> L
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20120302/77c636d9/attachment.htm


More information about the Squeak-dev mailing list