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

[sc-dev] [commit?] change in IdentityDictionary:doesNotUnderstand



At 18:24 Uhr +0000 12.11.2006, Tom Hall wrote:

Hmm, mainly it's not clear to me why

q = ();
s.sendMsg("/g_new", q.test = s.nextNodeID, 0, 0);




this would be fixed by:


doesNotUnderstand { arg selector ... args;
		var func;
		if (know) {
			func = this[selector];
			if (func.notNil) {
				^func.functionPerformList(\value, this, args);
			};
			if (selector.isSetter) {
				selector = selector.asGetter;
				this[selector] = args[0];
				^args[0]
			};
			func = this[\forward];
			if (func.notNil) {
^func.functionPerformList(\value, this, selector, args);
			};
			^nil
		};
		^this.superPerformList(\doesNotUnderstand, selector, args);
	}

--





.