[Pharo-users] Pharo first timer
bliznjan at fit.cvut.cz
Fri May 22 08:30:02 EDT 2015
Hello, I'm not so experienced ST user and I know your post is meant for the
developers more than other users, but I would like to join the discussion
and maybe help anyway :)
(1) It is true that Nautilus (class browser) needs a lot of time to display
greater amounts of classes. For example displaying whole Roassal2 package
with 319 classes for first time takes 12 seconds on my PC and I always curse
myself for even clicking on it, so displaying all classes in Pharo (which is
almost 10 thousand in basic image) takes a lot of time, but honestly, I have
never needed to display all classes in whole Pharo.
(2) Class is "abstract" and should not have any instances. allInstances
method returns only instances of receiver, but not of subclasses of
receiver. Getting instances of Metaclass is something quite different - it
returns all "classes of classes". Maybe take a look at this:
Method allSubclasses gives you everything recursively connected by empty
arrows (subclasses) and allInstances gives you everything connected by
double filled arrows (instances).
> I am an experienced SMalltalk user. Two things surprised me when I first
> tried Pharo.
> (1) Selecting ProtoObject and then clicking Heirarchy takes about 10
> seconds to display the full heirarchy. This seems awfully slow.
> (2) Inspecting 'Class allInstances' gives an empty array. This doesn't
> seem quite right! 'Metaclass allInstances' gives the expected result.
> Cheers, Paul
View this message in context: http://forum.world.st/Pharo-first-timer-tp4827969p4828062.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
More information about the Pharo-users