<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">If you change <br>
<br>
MethodReference>>sourceString so that it looks like this:<br>
<br>
sourceString<br>
<br>
self methodSymbol = #Comment ifTrue: [^self actualClass
comment].<br>
^ (self actualClass sourceCodeAt: self methodSymbol) asString<br>
<br>
your code will run in Squeak 4.2 and presumably 4.3.<br>
<br>
Cheers,<br>
Bob<br>
</font><br>
On 3/2/12 3:57 PM, Lawson English wrote:
<blockquote cite="mid:4F513436.8090301@cox.net" type="cite">On
3/2/12 5:55 AM, Nicolas Cellier wrote:
<br>
<blockquote type="cite">Transcript print: ... ; cr; endEntry
<br>
</blockquote>
myNav := SystemNavigation default.
<br>
(myNav allMethodsWithSourceString: '"' matchCase: false) do:
<br>
[:each| Transcript show: each asString -> ( each
actualClass
<br>
commentsIn: each sourceString);cr;endEntry ]
<br>
<br>
Still generates the error MNU: ComentReference>>sourceString
<br>
<br>
On Pharo 1.3
<br>
<br>
Still generates the error: MNU: Key not found: Comment
<br>
<br>
On Squeak 4.3
<br>
<br>
<br>
<br>
AFTER many hundreds of lines of valid output.
<br>
<br>
In the same place as before in both images with 2 different VMs.
<br>
<br>
<br>
<br>
Are you testing the code you are writing and not seeing the error?
<br>
<br>
L
<br>
<br>
<br>
</blockquote>
</body>
</html>