Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Unicode letter instead of literal for omega symbol

  • Loading branch information...
commit 5dfc1141702327671aeada146d246e4046ad622b 1 parent 8b22187
@olabini authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/ikc/main/Ioke.Lang/Number.cs
View
8 src/ikc/main/Ioke.Lang/Number.cs
@@ -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) => {
@@ -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.",
Please sign in to comment.
Something went wrong with that request. Please try again.