-
... } *c2o {|n| ^(n.sqrt - 1) } *pr_checkServerBooted { |server| if(server.isNil) { Error("%: invalid server argument: Nil".format(thisMethod)).throw }; if(server.serverRunning.not) { Error("%: Server not booted".format(thisMethod)).throw } } }
-
... hi_ { // on second thought, no, just swallow the call // SubclassResponsibilityError(this, 'hi_', this.class) } } ClRangeNumProxy : ClNumProxy { var <>lo, <hi; *new { |lo = 0.0, hi = 1.0| ^super.new.lo_(lo).hi_(hi) } init { val = Pfunc { r ...
-
... { doAfter { |obj| if (obj.respondsTo(\addDoAfter)) { obj.addDoAfter(this); } { Error("Target (%) cannot register objects for freeAfter/doAfter.".format(obj)).throw; } } } +Object { freeAfter { |obj| { this.free }.doAfter(obj) } closeAfter ...
-
... dFree, {}) ; } clear { // if(dirty) {}; // ??? { try { cleanup.value(this) } { |error| if(error.notNil) { error.reportError; "^^^ error thrown during custom cleanup".warn }; }; controllers.do { |ctl| ctl.remove }; controllers.clear; proxysp ...
-
... ns) { ^this.prKeepAll(oldTokens) }; // shortcut. identity sometimes causes diff errors? diffString = this.calcDiff(newTokens, oldTokens); returnValues = this.prParseDiff(diffString); prevTokens = newTokens; ^returnValues } // for now use th ...
-
... ame); if(res == false, { "%: File % does not exist".format(this.name, fileName).error }); res } && fileNameArray.every{|fileNamePair| (fileNamePair.size == 2) && (fileNamePair.every{|fn| fn.isKindOf(String)}) }, { // Convert var fnString = ...
-
... ault, all messages are forwarded to it. */ a = Isolator(8); a + 3; // throws an error "ERROR: Object (8) is isolated, so the message '+', could not be called." 3 + a; // same same a.allowSelector('+'); a + 3 // fine now 3 + a // same same / ...
-
... MenuBuffers.valueAction = index; },{ popupMenuBuffers.valueAction = 0; }); } { |error| postln(error); } } initializeView { mainLayout = HLayout(); mainLayout.margins = 0!4; this.layout = mainLayout; popupMenuBuffers = PopUpMenu(); popupMenu ...
-
... Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ SimpleInitError : Error { var <>class; errorString { ^"INPUT ERROR in building an instance of " ++ class.asString ++ ":" } reportError { "".postln; this.errorString.postl ...
-
... a = Extendable.new; // responds to nothing // correctly throws "not understood" errors: a.play a.free a.asArray // add a new method, the first argument is the object itself a.kuchen = { |self, x, y, z| [x, y, z].postln; 999 }; a.kuchen(1, 2 ...