[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] finding a method



ah...

y = x.detect( _.name === \deprecated );		// wrong
y = x.detect({ arg m; m.name === \deprecated });	// right

still don't understand why, but anyway i don't care ;_)

thx, -sciss-


Am 23.12.2007 um 22:40 schrieb James Harkins:

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