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

Lawson English lenglish5 at cox.net
Fri Mar 2 23:04:27 UTC 2012


Is that a bug fix, or a workaround, I wonder?

Regardless, I'll  redo the video but add the caveat that due to an 
existing issue, one needs to add an extra line of code to skip printing 
out methods whose symbol is #Comment.

L.

On 3/2/12 3:57 PM, Bob Arning wrote:
> 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/e7b5b835/attachment.htm


More information about the Squeak-dev mailing list