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

[sc-dev] Suggestion -- NodeProxy:trace



Before submitting a PR, I thought I'd ask for feedback on this:

+ NodeProxy {
	trace { |index = 0|
		var obj = objects[index];
		if(obj.nodeID.notNil) {
			server.sendMsg(\n_trace, obj.nodeID);
		} {
			"Cannot trace a% %".format(
				if(obj.class.name.asString.first.isVowel) { "n" } { "" },
				obj.class.name
			).warn;
		};
	}
}

Rationale: It is *really really irritating* to create a NodeProxy, and it doesn't sound right, and to trace it, you currently have to write:

s.sendMsg(\n_trace, theProxy.objects[0].nodeID);

hjh



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/