An useful snip (maybe)

Lic. Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Fri Mar 18 08:43:59 UTC 2005


On [DATE], "[NAME]" <[ADDRESS]> wrote:

> referencesAsSet
> | set |
> set := Set new.
> self methodDict do: [ association |
> association value literals do: [ :literal |
> (literal isKindOf: LookupKey) ifTrue: [
> set add: literal ]]].
> self class methodDict do: [ association |
> association value literals do: [ :literal |
> (literal isKindOf: LookupKey) ifTrue: [
> set add: literal ]]].
> ^ set
> 
> in Class. If you explore "Socket referencesAsSet", you'll get an idea
> what is referenced by Socket's methods (superclass methods not
> included). I found it useful when 'renetworking' my majorShrinked image.
> 
> 
> Kind regards, Markus
I was ussing some code , but with Class instead LookupKey, cauld I learn the
difference ?

Cheers

Edgar






More information about the Squeak-dev mailing list