I managed to find some time to progress with my Smalltalk / Pharo learning and am going through the Spec booklet. I noticed that autocompletion most of the times works excellent, sometimes it struggles.

For instance, if you prepare

CustomerSatisfaction >> initializeWidgets
    buttonBad := self instantiate: ButtonPresenter.

and then start to write
    buttonBad label: ...

in the same method, the #label: selector is found immediately.

However, if you say

CustomerSatisfaction >> initializeWidgets
    buttonBad := self newButton.

where

ComposablePresenter >> newButton
    ^ self instantiate: ButtonPresenter

and inherited by CustomerSatisfaction, then the #label: selector is not found by autocompleter (in the menu of choices).

I'm just curious why is that so. For a novice, autocompleter is a life saver :-)

Best wishes,
Tomaz

Reply via email to