Browse Source

fixed Number >> isImmutable

Nicolas Petton 11 years ago
parent
commit
9be507a872
3 changed files with 31 additions and 31 deletions
  1. 11 11
      js/Kernel-Objects.deploy.js
  2. 16 16
      js/Kernel-Objects.js
  3. 4 4
      st/Kernel-Objects.st

+ 11 - 11
js/Kernel-Objects.deploy.js

@@ -2250,17 +2250,6 @@ return $1;
 messageSends: ["x:y:"]}),
 smalltalk.Number);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "IsImmutable",
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-return true;
-}, function($ctx1) {$ctx1.fill(self,"IsImmutable",{},smalltalk.Number)})},
-messageSends: []}),
-smalltalk.Number);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "\x5c\x5c",
@@ -2400,6 +2389,17 @@ return $1;
 messageSends: [",", "asString"]}),
 smalltalk.Number);
 
+smalltalk.addMethod(
+smalltalk.method({
+selector: "isImmutable",
+fn: function (){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
+return true;
+}, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.Number)})},
+messageSends: []}),
+smalltalk.Number);
+
 smalltalk.addMethod(
 smalltalk.method({
 selector: "isNumber",

+ 16 - 16
js/Kernel-Objects.js

@@ -3106,22 +3106,6 @@ referencedClasses: ["Point"]
 }),
 smalltalk.Number);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "IsImmutable",
-category: 'testing',
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-return true;
-}, function($ctx1) {$ctx1.fill(self,"IsImmutable",{},smalltalk.Number)})},
-args: [],
-source: "IsImmutable\x0a\x09^ true",
-messageSends: [],
-referencedClasses: []
-}),
-smalltalk.Number);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "\x5c\x5c",
@@ -3316,6 +3300,22 @@ referencedClasses: []
 }),
 smalltalk.Number);
 
+smalltalk.addMethod(
+smalltalk.method({
+selector: "isImmutable",
+category: 'testing',
+fn: function (){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
+return true;
+}, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.Number)})},
+args: [],
+source: "isImmutable\x0a\x09^ true",
+messageSends: [],
+referencedClasses: []
+}),
+smalltalk.Number);
+
 smalltalk.addMethod(
 smalltalk.method({
 selector: "isNumber",

+ 4 - 4
st/Kernel-Objects.st

@@ -1193,14 +1193,14 @@ printShowingDecimalPlaces: placesDesired
 
 !Number methodsFor: 'testing'!
 
-IsImmutable
-	^ true
-!
-
 even
 	^ 0 = (self \\ 2)
 !
 
+isImmutable
+	^ true
+!
+
 isNumber
 	^true
 !