Les méthodes avec le plus d’arguments

J’ai adapté le code de Travis Griggs pour Squeak 3.9 :


| count winners |
count := 0.
winners := Set new.
SystemNavigation new allBehaviorsDo:
[:eachBehav |
eachBehav selectors do:
[:each |
myCount := each numArgs.
myCount = count ifTrue: [winners add: each].
myCount > count
ifTrue:
[count := myCount.
winners := Set with: each]]].
winners

et j’obtiens comme résultat 3 méthodes qui ont 12 arguments :

#initializeWithName:superclassName:traitComposition:
classTraitComposition:category:instVarNames:
classVarNames:poolDictionaryNames:classInstVarNames:
type:comment:commentStamp:


#primVideoReadNextFrameFor:into:offset:
x:y:width:
height:outWidth:outHeight:
colorModel:stream:bytesPerRow:


#name:superclassName:traitComposition:
classTraitComposition:category:instVarNames:
classVarNames:poolDictionaryNames:classInstVarNames:
type:comment:commentStamp:

Il y a donc deux méthodes concernant la gestion des Traits. Le record de VisualWorks n’est donc pas battu par Squeak !

WordPress database error: [Table 'doesnotunderstand.wp_comments' doesn't exist]
SELECT * FROM wp_comments WHERE comment_post_ID = '54' AND comment_approved = '1' ORDER BY comment_date


Subscribe

Subscribe to my RSS Feeds