Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / SCClassLibrary / Common / Core / Message.sc
bloba3ba718130d0f79f4896a53d8ac57f36be468f19
1 Message {
2         var <>receiver, <>selector, <>args;
4         *new { arg receiver, selector, args;
5                 ^super.newCopyArgs(receiver, selector, args);
6         }
7         value { arg ... moreArgs;
8                 ^receiver.performList(selector, args ++ moreArgs);
9         }
10         storeArgs { ^[receiver, selector, args] }
13 MethodQuote {
14         var <>selector;
16         *new { arg selector;
17                 ^super.newCopyArgs(selector);
18         }
19         value { arg receiver ... args;
20                 ^receiver.performList(selector, args);
21         }
22         storeArgs { ^[selector] }