Because this is really
x.detect({ |method| { method.name } === \deprecated })
Strange but true. This should work.
x.detect({ |method| method.name === \deprecated })
hjh
On Dec 23, 2007, at 4:29 PM, Sciss wrote:
hi,
why i cannot detect a method?
x = Object.methods;
x.collect( _.name ).includes( \deprecated ); // true!
x.detect( _.name === \deprecated ); // nil! why???
ciao, -sciss-
: H. James Harkins
: jamshark70@xxxxxxxxxxxxxxxxx
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users