« Return to Thread: instance methods

instance methods

by Stefan Nussbaumer-3 :: Rate this Message:

Reply to Author | View in Thread

sorry, probably i'm missing something ...

i have this class-definition:

Test {

    someTest { arg in; ^in*5 }

}

after having recompiled i'm trying to execute this:

10.someTest.postln

shouldn't that post 50? i'm just getting an error: ERROR: Message
'somTest' not understood (and some other lines ...).


i've read through the writing classes help and i've written a couple of
class methods that work the way they are supposed to. what am i missing
about instance methods?

thanks for any help

stefan
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

 « Return to Thread: instance methods

LightInTheBox - Buy quality products at wholesale price