diff --git a/HISTORY.md b/HISTORY.md index 23866475..94a945be 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,7 @@ ## in development: * **Notable Changes:** + * identity comparison of texts is now case-sensitive * hyperized image attribute reporter primitive (monadic) * when constructing a costume from a pixel list handle single values as greyscale * experimental "transpose (list)" primitive relabelling option for "all but first" @@ -19,6 +20,7 @@ ### 2021-01-02 * lists: refactored some matrix operations +* threads: made identity comparison of texts case-sensitive ### 2021-01-30 * threads, objects, lists: renamed experimental "rotate" primitive into "transpose" diff --git a/snap.html b/snap.html index e905d5ab..8eaeb129 100755 --- a/snap.html +++ b/snap.html @@ -9,7 +9,7 @@ - + diff --git a/src/threads.js b/src/threads.js index bb5f9457..07b04792 100644 --- a/src/threads.js +++ b/src/threads.js @@ -61,7 +61,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy, Map, isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, BLACK, TableFrameMorph, ColorSlotMorph, isSnapObject, newCanvas, Symbol, SVG_Costume*/ -modules.threads = '2021-January-30'; +modules.threads = '2021-February-01'; var ThreadManager; var Process; @@ -3904,6 +3904,10 @@ Process.prototype.reportNot = function (bool) { Process.prototype.reportIsIdentical = function (a, b) { var tag = 'idTag'; + if (isString(a) && isString(b)) { + // compare texts case-sentitive + return a === b; + } if (this.isImmutable(a) || this.isImmutable(b)) { return snapEquals(a, b); }