Skip to content

Commit

Permalink
Use Unicode letter instead of literal for omega symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
olabini committed Dec 23, 2009
1 parent 8b22187 commit 5dfc114
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ikc/main/Ioke.Lang/Number.cs
Expand Up @@ -143,8 +143,8 @@ public class Number : IokeData {

IokeObject infinity2 = new IokeObject(runtime, "A value representing infinity", new Number(RatNum.infinity(1)));
infinity2.MimicsWithoutCheck(ratio);
infinity2.Kind = "Number ";
number.RegisterCell("", infinity2);
infinity2.Kind = "Number \u221E";
number.RegisterCell("\u221E", infinity2);

number.RegisterMethod(runtime.NewNativeMethod("returns a hash for the number",
new NativeMethod.WithNoArguments("hash", (method, context, message, on, outer) => {
Expand Down Expand Up @@ -282,13 +282,13 @@ public class Number : IokeData {
infinity2.RegisterMethod(runtime.NewNativeMethod("Returns a text inspection of the object",
new TypeCheckingNativeMethod.WithNoArguments("inspect", infinity2,
(method, on, args, keywords, context, message) => {
return runtime.NewText("");
return runtime.NewText("\u221E");
})));

infinity2.RegisterMethod(runtime.NewNativeMethod("Returns a brief text inspection of the object",
new TypeCheckingNativeMethod.WithNoArguments("notice", infinity2,
(method, on, args, keywords, context, message) => {
return runtime.NewText("");
return runtime.NewText("\u221E");
})));

rational.RegisterMethod(runtime.NewNativeMethod("returns the addition of this number and the argument. if the argument is a decimal, the receiver will be converted into a form suitable for addition against a decimal, and then added. if the argument is neither a Rational nor a Decimal, it tries to call asRational, and if that fails it signals a condition.",
Expand Down

0 comments on commit 5dfc114

Please sign in to comment.