From 7e8d13beaf9e4860f9b2efabdffd66a260703f00 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 11 Apr 2019 15:58:03 +0200 Subject: [PATCH] re- renamed minus selector back to "neg" --- HISTORY.md | 3 ++- src/blocks.js | 3 ++- src/threads.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index f6216d22..52875a3f 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -25,7 +25,7 @@ * new "get graphic effect" reporter * new "get pen attribute" reporter * new "write" command in pen category (used to be "label" in tools) - * added "-" (minus), "lg" (log2) and "2^" selectors to monadic function reporter in Operators + * added "neg", "lg" (log2) and "2^" selectors to monadic function reporter in Operators * added "^" reporter (power of) in the Operators category * added "width" and "height" as attribute selectors of the OF primitive for the stage * special context-aware drop-downs for custom blocks @@ -70,6 +70,7 @@ * Blocks, Threads: renamed monadic selectors: "neg" to "-" and "log2" to "lg", added "2^" * Objects: moved costume-pixels primitives down in the palette towards the graphic effects * German translation update +* re- renamed minus selector back to "neg" ### 2019-04-10 * Objects: took out MAP and FOREACH primitives (available in dev mode) diff --git a/src/blocks.js b/src/blocks.js index 6ee6ad9f..3aff5a58 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -1323,7 +1323,8 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { false, { abs : ['abs'], - '\u2212' : ['\u2212'], // minus-sign + // '\u2212' : ['\u2212'], // minus-sign + neg : ['neg'], ceiling : ['ceiling'], floor : ['floor'], sqrt : ['sqrt'], diff --git a/src/threads.js b/src/threads.js index 6d235d6d..91ca1477 100644 --- a/src/threads.js +++ b/src/threads.js @@ -2866,7 +2866,8 @@ Process.prototype.reportMonadic = function (fname, n) { case 'abs': result = Math.abs(x); break; - case '\u2212': // minus-sign + // case '\u2212': // minus-sign + case 'neg': result = n * -1; break; case 'ceiling':