[FIX] Re: Dictionary initialization syntax
Richard A. O'Keefe
ok at atlas.otago.ac.nz
Thu Dec 7 21:10:58 UTC 2000
"Andrew P. Black" <apb at cse.ogi.edu> wrote:
Well, Dictionary Class >> newFrom: aDictOrArray contains a couple of
examples of ways to do, this, namely
Dictionary newFrom: {1->#a. 2->#b. 3->#c}
{1->#a. 2->#b. 3->#c} as: Dictionary
But the comments and argument name in that method were such that you
were unlikely to find it.
I think that's a little unfair.
If you want to know how to make a Dictionary,
the obvious thing to do is to point the browser at that class,
and look at class methods for instance creation.
There is only one.
(Ok, there are also the inherited "new" and "new: size".)
More information about the Squeak-dev
mailing list
|