<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p><span style="font-size:12pt">Hi Eliot,</span><br>
</p>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p><br>
</p>
<p>> <span>nil is a singleton.</span></p>
<p><span><br>
</span></p>
<p><span>Uh, yes, of course. This was a strange aspect of my example ... But you can reproduce the same problem without reinstantiating UndefinedObject:</span></p>
<p><span><br>
</span></p>
<p><span></span></p>
<div>nilTracer := ObjectTracer on: nil.</div>
<div>nilTracer isNil. "false"</div>
<div>nilTracer perform: #isNil. "true"</div>
<div><br>
</div>
<div>This is still not nice. Well, this is not an issue of inlining but it happens because #isNil defined on ProtoObject. If I understand your vision of ProtoObject correctly, we would want to change this anyway. What problems do you expect when we move #isNil
 down to Object? :-)</div>
<div><br>
</div>
<div>> <span style="font-size:12pt">Perhaps we should add that guard to #basicNew. :)</span>
<div><br>
</div>
</div>
Rather not. #basicNew is meant as a very private message which you should never send to strangers. For experimental purposes of whatever kind, it is great to have the possibility to do these illegal things, just to explore the effects. I would rather vote for
 criticizing the use of #basicNew in linters such as RefactoringBrowser.
<p></p>
<p><span><br>
</span></p>
<p><span>> </span><span style="font-size:12pt">#isNil is not inlined in Squeak. #ifNil:, #ifNotNil:, #ifNil:ifNotNil:, </span><span></span><span style="font-size:12pt">#ifNotNil:ifNil: are inlined when their arguments are literal blocks.</span><span></span></p>
<div>> </div>
<div>> Having them inlined is perfectly fine as long as nil is a singleton.</div>
<div><br>
</div>
<div>Sorry, I am still not convinced. :-) Consider the following:</div>
<div><br>
</div>
<div>
<div><span style="font-size:12pt"></span></div>
<div>nilTracer ifNil: [true] ifNotNil: [false]. "false"</div>
<div><br>
</div>
<div>There are two issues with this output:</div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">1.</span><span style="font-size:12pt"> <span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">I expect
 this to return true so that nilTracer becomes absolutely transparent. However, inlining is not the problem here, but rather the fact that #== is defined on ProtoObject. Again here: Would you agree to move this down to Object, and what specific problems would
 you expect?</span></span></div>
<div><span style="font-size:12pt"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px"><br>
</span></span></div>
<div><span style="font-size:12pt"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">2. Even if we fix #==, this #ifNil:ifNotNil:
 call will *not* be traced by ObjectTracer as long as it is inlined. In my opinion, it is not desirable to have any special selectors that don't follow the usual rules of message dispatching in Squeak ...</span></span></div>
<div><span style="font-size:12pt"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px"><br>
</span></span></div>
<div><span style="font-size:12pt"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">... thus, my proposal below. The proposal is
 not related to singletons in any way, it just describes an approach of how we could get rid of compiler-hard-coded behavior.</span></span></div>
</div>
<p></p>
<p><br>
</p>
<p>> <span style="font-size:12pt">2. we have a prototype adaptive optimizer/speculative inliner, Scorch, written by Clément Béra, with my having designed them lower levels of the architecture. I am currebtly making space in my work life to port this to Squeak
 and productise it.  This optimizer will automatically create inlined code that is much more efficient than these helped methods.  So these are a premature optimization.  </span></p>
<div><br>
</div>
<div>I'm really looking forward to this! So I understand you correctly that in Squeak Scorch, we will not need any precompiled inlining any longer? :D In this case, anything like #<span>acceptsInlining would not be worth implementation, of course :-)</span></div>
<div><span><br>
</span></div>
<div><span>> </span><span style="font-size:12pt">Yes, #class is a special selector known by the VM. IIRC this one is easier </span><span></span><span style="font-size:12pt">to get rid of by removing #class from #specialSelectors (or disabling </span><span></span><span style="font-size:12pt">the
 use of the special bytecode for #class some other way) and recompiling </span><span style="font-size:12pt">all code.</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">It is definitively crazy that the bug does not occur if you run {specialObj class} simulated. However we decide, shouldn't we implement the simulation of special selectors properly in Context so that they are not actually sent
 as regular messages? For Sista's bytecode 16r77, for example, we could use the mirror primitive #objectClass:. I'd be glad to try my luck if you think it is useful!</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">(Apologize a VM newbie's question: Where can I read the official implementation of bytecode interpretation for Cog? For educational purposes, I found
<a href="https://github.com/bertfreudenberg/SqueakJS/blob/13581caeb489875c4a39a78aa9d95866cc8892a5/vm.primitives.js#L57-L79" class="OWAAutoLink">
this in SqueakJS</a>, but for Cog, can I find it in the OpenSmalltalkVM repo or is this in VMMaker package?)</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-size:12pt">Best,</span></div>
<div><span style="font-size:12pt">Christoph</span></div>
<div><br>
</div>
<p></p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="x__rp_T4" id="x_Item.MessagePartBody">
<div class="x__rp_U4 x_ms-font-weight-regular x_ms-font-color-neutralDark x_rpHighlightAllClass x_rpHighlightBodyClass" id="x_Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="x_divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="x_Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont">
<div><font size="3" color="black"><span style="font-size:12pt"><a href="http://www.hpi.de/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span id="LPlnk909538"><font color="#757B80"></font></span></font></a></span></font></div>
</font></div>
</div>
</font></div>
</div>
</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block; width:98%" tabindex="-1">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Levente Uzonyi <leves@caesar.elte.hu><br>
<b>Gesendet:</b> Sonntag, 22. März 2020 16:36:07<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] ProtoObject (was: #isNilOr:, #notNilAnd:)</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText">Hi Christoph,<br>
<br>
On Sat, 21 Mar 2020, Thiede, Christoph wrote:<br>
<br>
> <br>
> (Forking this thread due to difference of concerns ... :-))<br>
> <br>
> <br>
> > I'm also not sure whether these methods belong to ProtoObject or not.<br>
> <br>
> This is an interesting problem, see also the recent thread about cleaning up ProtoObject. I agree with Eliot that a good ProtoObject is as small and stupid as possible in order to be really useful for writing powerful proxies<br>
> or decorators. It should be possible to wrap nil into an ObjectTracer, for example! To put the issue in a nutshell, try out the following:<br>
><br>
>       newNil := UndefinedObject basicNew.<br>
> <br>
> nilTracer := ObjectTracer on: newNil.<br>
> <br>
> nilTracer isNil. "false"<br>
> <br>
> nilTracer perform: #isNil. "true"<br>
<br>
nil is a singleton. You seem to be aware of this because in your code you <br>
had to work around the guard implemented in UndefinedObject >> #new to <br>
create another instance by using #basicNew.<br>
The VM relies on this property, so nil is a special object known by the <br>
VM.<br>
nil's role as a singleton is pronounced by the language itself: it has <br>
its own keyword.<br>
Perhaps we should add that guard to #basicNew. :)<br>
<br>
> <br>
> <br>
> Here's a similar issue:<br>
><br>
>       specialClass := Object newSubclass.<br>
> specialClass compile: 'class ^42'.<br>
> specialObj := specialClass new.<br>
> specialObj class. "Object1"<br>
> specialObj perform: #class. "42"<br>
<br>
Yes, #class is a special selector known by the VM. IIRC this one is easier <br>
to get rid of by removing #class from #specialSelectors (or disabling <br>
the use of the special bytecode for #class some other way) and recompiling <br>
all code.<br>
<br>
> <br>
> <br>
> (By the way, we are not even consistent with ourself in this concern:<br>
><br>
>       ([specialObj class] newProcess runUntil: #willReturn) suspendedContext top. "42"<br>
> <br>
> <br>
> ) Pooh, that's both really not nice ... Basically, inlining of #isNil & Co. is an optimization and IMHO it should not affect the basic concept of how messages are dispatched. Too less inlining affects performance, but too<br>
> much inlining introduces conceptional errors.<br>
<br>
#isNil is not inlined in Squeak. #ifNil:, #ifNotNil:, #ifNil:ifNotNil:, <br>
#ifNotNil:ifNil: are inlined when their arguments are literal blocks.<br>
<br>
Having them inlined is perfectly fine as long as nil is a singleton.<br>
<br>
> Would it be a big performance impact if we made inlining optional? Here is a short proposal:<br>
<br>
Here's a quick benchmark measuring the slowdown of #ifNotNil: with a non <br>
full block 10 times:<br>
<br>
((1 to: 10) collect: [ :run |<br>
         [ :empty :inlined :notInlined | (notInlined - empty) / (inlined - empty) asFloat ]<br>
                 valueWithArguments: {<br>
                         [ 1 to: 100000000 do: [ :i | ] ] timeToRun.<br>
                         [ 1 to: 100000000 do: [ :i | i ifNotNil: [ :j | j ] ] ] timeToRun.<br>
                         [ | b | b := [ :j | j ]. 1 to: 100000000 do: [ :i | i ifNotNil: b ] ] timeToRun } ])<br>
         sort<br>
         collect: [ :result | result asScaledDecimal: 2 ]<br>
<br>
On my machine it yields values between 12 and 32.<br>
<br>
> <br>
> We could tell every bytecode interpreter to check for any receiver if it agrees on being deprived of messages that can be inlined. We could decide this per receiver class and cache these answers in the VM. Hypothetical<br>
> example:<br>
><br>
>       Object >> #acceptsInlining<br>
> <br>
>     "This message is never sent, but it's existance signalizes the VM that it is okay to inline popular messages such as #isNil or #ifTrue:."<br>
> <br>
> <br>
> If this concept is too expensive or too confusing, we could also add an instance variable to the class object. Anyway, something like this. That way we could make the concept of inlining optional. If an interpreter evaluated<br>
> {nilTracer isNil}, it would have to do the following (I'm following the simulation code in #interpretNextSistaV1InstructionFor:. Disclaimer: Absolutely free of optimizations!)<br>
><br>
>       ...<br>
> "short sends"<br>
> (div16 = 6 and: [rcvr respondsTo: #acceptsInlining]) ifTrue:<br>
> [^client<br>
> send: (Smalltalk specialSelectorAt: offset + 1)<br>
> super: false<br>
> numArgs: (Smalltalk specialNargsAt: offset + 1)].<br>
> ...<br>
> "otherwise, message will be dispatched regularly"<br>
> <br>
> <br>
> Some similar checks would be required in case of primitives that are generated for inlined methods, such as 257f.:<br>
><br>
>       ...<br>
> ((primIndex := meth primitive) > 0 and: [<br>
>         (self isInliningPrimitive: primitive) not or: [rcvr respondsTo: #acceptsInlining]])<br>
> ifTrue:<br>
>     [val := self doPrimitive: primIndex method: meth receiver: rcvr args: arguments.<br>
>     (self isPrimFailToken: val) ifFalse:<br>
>         [^val]]<br>
> ...<br>
> "otherwise, message will be dispatched regularly"<br>
> <br>
> <br>
> How would you think of this concept in general? I'm excited to hear your feedback! :-)<br>
<br>
My impression is that you want to break the basic concept of nil being a <br>
singleton. It's doable, but then you'll need a separate compiler and <br>
object space where the nil keyword is not allowed.<br>
<br>
<br>
Levente<br>
<br>
> <br>
> Best,<br>
> Christoph<br>
> <br>
> <br>
> _________________________________________________________________________________________________________________________________________________________________________________________________________________________________<br>
> Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Levente Uzonyi <leves@caesar.elte.hu><br>
> Gesendet: Samstag, 21. März 2020 20:25 Uhr<br>
> An: The general-purpose Squeak developers list<br>
> Betreff: Re: [squeak-dev] #isNilOr:, #notNilAnd:  <br>
> Hi Christoph,<br>
> <br>
> They are okay for scripts, but we know that methods like that always end<br>
> up being used out of scripts, and are even misused every now and then.<br>
> They are especially susceptible to misuse when their return value is<br>
> ignored; in which case they are both equivalent to #ifNotNil:.<br>
> <br>
> I'm also not sure whether these methods belong to ProtoObject or not.<br>
> I know the other nil handling methods are there as well, but that doesn't<br>
> mean all such methods belong there.<br>
> E.g. #ifNil:/#ifNotNil: should be there because the current compiler and<br>
> VM will make those available for all objects provided the methods are<br>
> inlined. But #isNil and #notNil have no such properties, so they belong<br>
> more to Object than ProtoObject in my opinion.<br>
> <br>
> <br>
> Levente<br>
> <br>
> On Mon, 16 Mar 2020, Thiede, Christoph wrote:<br>
> <br>
> ><br>
> > Hi all,<br>
> ><br>
> ><br>
> > after the release has been managed successfully, I would like to kindly push this proposal. In the latest months, I found myself to really often desiring #isNilOr: or #notNilAnd:. How would you think about these convenience<br>
> > selectors? :-)<br>
> ><br>
> ><br>
> > Best,<br>
> ><br>
> > Christoph<br>
> ><br>
> >________________________________________________________________________________________________________________________________________________________________________________________________________________________________<br>
> _<br>
> > Von: Thiede, Christoph<br>
> > Gesendet: Mittwoch, 11. Dezember 2019 11:01:44<br>
> > An: Squeak Dev<br>
> > Betreff: #isNilOr:, #notNilAnd:  <br>
> ><br>
> > Hi all, just another idea for a hypothetic extension to ProtoObject:<br>
> ><br>
> ><br>
> > ProtoObject >> #isNilOr: aBlock<br>
> ><br>
> > ^ aBlock cull: self<br>
> ><br>
> > UndefinedObject >> #isNilOr: aBlock<br>
> ><br>
> > ^ true<br>
> ><br>
> > ProtoObject >> #notNilAnd: aBlock<br>
> ><br>
> > ^ aBlock cull: self<br>
> ><br>
> > UndefinedObject >> #notNilAnd: aBlock<br>
> ><br>
> > ^ false<br>
> ><br>
> ><br>
> > Examples:<br>
> ><br>
> > parentObject notNilAnd: #canBrowseSubtopic.<br>
> ><br>
> > helpClass notNilAnd: [:hC| hC usesCodeStyling].<br>
> ><br>
> > self selectionIndex isNilOr: [:index | index > 2].<br>
> ><br>
> > anObject isNilOr: #isZero.<br>
> ><br>
> > foo isNilOr: #isNotEmpty.<br>
> ><br>
> ><br>
> > Just a bit syntactic sugar for idiomatic problems such as below. In particular, I found several possible applications for #notNilAnd: in my image.<br>
> ><br>
> ><br>
> > Go ahead and tell me why it would be a bad idea :)<br>
> ><br>
> ><br>
> > Best,<br>
> ><br>
> > Christoph<br>
> ><br>
> ><br>
> >________________________________________________________________________________________________________________________________________________________________________________________________________________________________<br>
> _<br>
> > Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Thiede, Christoph<br>
> > Gesendet: Freitag, 25. Oktober 2019 19:21 Uhr<br>
> > An: gettimothy via Squeak-dev<br>
> > Betreff: Re: [squeak-dev] The Inbox: HelpSystem-Core-ct.123.mcz  <br>
> ><br>
> > If you're needing a decision, I'd vote for option 3.<br>
> ><br>
> >________________________________________________________________________________________________________________________________________________________________________________________________________________________________<br>
> _<br>
> > Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel<br>
> > Gesendet: Mittwoch, 16. Oktober 2019 11:14:15<br>
> > An: gettimothy via Squeak-dev<br>
> > Betreff: Re: [squeak-dev] The Inbox: HelpSystem-Core-ct.123.mcz  <br>
> > Quick suggestion on the formatting. This one:<br>
> > ^ self canBrowseTopic or: [<br>
> >    parentTopic ifNotNil: #canBrowseSubtopic ifNil: [false]]<br>
> ><br>
> > could become:<br>
> ><br>
> > ^ self canBrowseTopic or: [<br>
> >    parentTopic<br>
> >    ifNil: [false]<br>
> >    ifNotNil: [:topic | topic canBrowseSubtopic]]<br>
> ><br>
> > or:<br>
> ><br>
> > ^ self canBrowseTopic<br>
> >       or: [parentTopic notNil and: [parentTopic canBrowseSubtopic]]<br>
> ><br>
> > Hmmm... what are other opinions on this? There is no need for #ifNil/ifNotNil in such a boolean expression?<br>
> ><br>
> > Best,<br>
> > Marcel<br>
> ><br>
> ><br>
> >       Am 13.10.2019 21:04:19 schrieb commits@source.squeak.org <commits@source.squeak.org>:<br>
> ><br>
> >       A new version of HelpSystem-Core was added to project The Inbox:<br>
> >       <a href="http://source.squeak.org/inbox/HelpSystem-Core-ct.123.mcz">http://source.squeak.org/inbox/HelpSystem-Core-ct.123.mcz</a><br>
> ><br>
> >       ==================== Summary ====================<br>
> ><br>
> >       Name: HelpSystem-Core-ct.123<br>
> >       Author: ct<br>
> >       Time: 13 October 2019, 9:04:08.373932 pm<br>
> >       UUID: dec7ceca-320f-d945-8d2a-c2f6a5e49a52<br>
> >       Ancestors: HelpSystem-Core-ct.120<br>
> ><br>
> >       Refactors HelpBrowser menu: Move menu stuff from HelpBrowser into HelpTopic hierarchy in favor of a better object design<br>
> ><br>
> >       Thanks again, Marcel :-)<br>
> ><br>
> >       =============== Diff against HelpSystem-Core-ct.120 ===============<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: AbstractHelpTopic>>browseTopicFromParent: (in category 'tools') -----<br>
> >       + browseTopicFromParent: parentTopic<br>
> >       +<br>
> >       + self canBrowseTopic<br>
> >       + ifTrue: [^ self browseTopic].<br>
> >       + parentTopic canBrowseSubtopic<br>
> >       + ifTrue: [^ parentTopic browseSubtopic: self].<br>
> >       + !<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: AbstractHelpTopic>>canBrowseSubtopic (in category 'testing') -----<br>
> >       + canBrowseSubtopic<br>
> >       +<br>
> >       + ^ false!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: AbstractHelpTopic>>canBrowseTopic (in category 'testing') -----<br>
> >       + canBrowseTopic<br>
> >       +<br>
> >       + ^ false!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: AbstractHelpTopic>>canBrowseTopicFromParent: (in category 'testing') -----<br>
> >       + canBrowseTopicFromParent: parentTopic<br>
> >       +<br>
> >       + ^ self canBrowseTopic or: [<br>
> >       + parentTopic ifNotNil: #canBrowseSubtopic ifNil: [false]]!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: AbstractHelpTopic>>topicMenu:parentTopic: (in category 'menus') -----<br>
> >       + topicMenu: aMenu parentTopic: parentTopic<br>
> >       +<br>
> >       + aMenu<br>
> >       + add: 'Inspect (i)' translated target: self action: #inspect;<br>
> >       + add: 'Explore (I)' translated target: self action: #explore.<br>
> >       + (self canBrowseTopicFromParent: parentTopic)<br>
> >       + ifTrue: [<br>
> >       + aMenu add: 'Browse (b)' translated<br>
> >       + target: self<br>
> >       + selector: #browseTopicFromParent:<br>
> >       + argumentList: {parentTopic} ].<br>
> >       +<br>
> >       + ^ aMenu!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: AbstractHelpTopic>>topicMenuKey:fromParent: (in category 'menus') -----<br>
> >       + topicMenuKey: aChar fromParent: parentTopic<br>
> >       +<br>
> >       + aChar<br>
> >       + caseOf: {<br>
> >       + [$b] -> [(self canBrowseTopicFromParent: parentTopic)<br>
> >       + ifTrue: [ self browseTopicFromParent: parentTopic ]].<br>
> >       + [$i] -> [self inspect].<br>
> >       + [$I] -> [self explore] }<br>
> >       + otherwise: [^ false].<br>
> >       + ^ true!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: ClassAPIHelpTopic>>canBrowseTopic (in category 'testing') -----<br>
> >       + canBrowseTopic<br>
> >       +<br>
> >       + ^ true!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: ClassBasedHelpTopic>>canBrowseSubtopic (in category 'testing') -----<br>
> >       + canBrowseSubtopic<br>
> >       +<br>
> >       + ^ true!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: ClassBasedHelpTopic>>canBrowseTopic (in category 'testing') -----<br>
> >       + canBrowseTopic<br>
> >       +<br>
> >       + ^ true!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: DirectoryBasedHelpTopic>>canBrowseTopic (in category 'testing') -----<br>
> >       + canBrowseTopic<br>
> >       +<br>
> >       + ^ true!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: FileBasedHelpTopic>>canBrowseTopic (in category 'testing') -----<br>
> >       + canBrowseTopic<br>
> >       +<br>
> >       + ^ true!<br>
> ><br>
> >       Item was removed:<br>
> >       - ----- Method: HelpBrowser>>browseTopic (in category 'actions') -----<br>
> >       - browseTopic<br>
> >       -<br>
> >       - ^ (self currentTopic respondsTo: #browseTopic)<br>
> >       - ifTrue: [self currentTopic browseTopic]<br>
> >       - ifFalse: [self currentParentTopic browseSubtopic: self currentTopic]!<br>
> ><br>
> >       Item was removed:<br>
> >       - ----- Method: HelpBrowser>>canBrowseTopic (in category 'testing') -----<br>
> >       - canBrowseTopic<br>
> >       -<br>
> >       - ^ (self currentTopic respondsTo: #browseTopic)<br>
> >       - or: [self currentParentTopic respondsTo: #browseSubtopic:]!<br>
> ><br>
> >       Item was removed:<br>
> >       - ----- Method: HelpBrowser>>exploreTopic (in category 'actions') -----<br>
> >       - exploreTopic<br>
> >       -<br>
> >       - ^ self currentTopic explore!<br>
> ><br>
> >       Item was removed:<br>
> >       - ----- Method: HelpBrowser>>inspectTopic (in category 'actions') -----<br>
> >       - inspectTopic<br>
> >       -<br>
> >       - ^ self currentTopic inspect!<br>
> ><br>
> >       Item was changed:<br>
> >       ----- Method: HelpBrowser>>treeKey:from:event: (in category 'menus') -----<br>
> >       treeKey: aChar from: aView event: anEvent<br>
> ><br>
> >       anEvent anyModifierKeyPressed ifFalse: [^ false].<br>
> >       + ^ (self currentTopic topicMenuKey: aChar fromParent: self currentParentTopic)!<br>
> >       - aChar<br>
> >       - caseOf: {<br>
> >       - [$b] -> [self browseTopic].<br>
> >       - [$i] -> [self inspectTopic].<br>
> >       - [$I] -> [self exploreTopic]. }<br>
> >       - otherwise: [^ false].<br>
> >       - ^ true!<br>
> ><br>
> >       Item was changed:<br>
> >       ----- Method: HelpBrowser>>treeListMenu: (in category 'menus') -----<br>
> >       treeListMenu: aMenu<br>
> ><br>
> ><br>
> >       + ^ self currentTopic<br>
> >       + ifNil: [aMenu]<br>
> >       + ifNotNil: [:topic | topic<br>
> >       + topicMenu: aMenu<br>
> >       + parentTopic: self currentParentTopic]!<br>
> >       - self currentTopic ifNil: [^ aMenu].<br>
> >       -<br>
> >       - aMenu<br>
> >       - add: 'Inspect (i)' action: #inspectTopic;<br>
> >       - add: 'Explore (I)' action: #exploreTopic.<br>
> >       -<br>
> >       - self canBrowseTopic ifTrue: [<br>
> >       - aMenu<br>
> >       - addLine;<br>
> >       - add: 'Browse (b)' action: #browseTopic].<br>
> >       -<br>
> >       - ^ aMenu!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: MethodListHelpTopic>>canBrowseTopic (in category 'testing') -----<br>
> >       + canBrowseTopic<br>
> >       +<br>
> >       + ^ true!<br>
> ><br>
> >       Item was added:<br>
> >       + ----- Method: PackageAPIHelpTopic>>canBrowseTopic (in category 'testing') -----<br>
> >       + canBrowseTopic<br>
> >       +<br>
> >       + ^ true!<br>
> ><br>
> ><br>
> ><br>
> ><br>
> <br>
></div>
</span></font></div>
</body>
</html>