View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

all primitive Names

(by Alberto de Campo)

Synth.do({ arg class; 
        var primitiveMethodNames;
        primitiveMethodNames = class.methods
                .collect({ arg method; method.primitiveName })
                .select({ arg primName; primName.notNil; });
        
        if (primitiveMethodNames.notEmpty, { 
                class.name.post; 
                
                primitiveMethodNames.asCompileString.postln;
                ''.postln;
        });
});

Class.allClasses.do({ arg class; 
        var primitiveMethodNames; 
        if (class.methods.notNil, { 
                primitiveMethodNames = class.methods
                        .collect({ arg method; method.primitiveName })
                        .select({ arg primName; primName.notNil; });
                
                if (primitiveMethodNames.notEmpty, { 
                        class.name.post; 
                        
                        primitiveMethodNames.asCompileString.postln;
                        ''.postln;
                });
        });
});


Links to this Page