From e3c667d49d45f864221e83ec39847f3acb52a41e Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Thu, 17 Dec 2009 21:00:31 -0500 Subject: [PATCH] number examples --- examples/code.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/code.cs b/examples/code.cs index 67899925..39f301bc 100644 --- a/examples/code.cs +++ b/examples/code.cs @@ -19,9 +19,7 @@ spaced_out_multiline_object: { pi: 3.14159 - a_googol: 1e100 - - list: [-1, 0, 1, 2, 3, 4] + list: [1, 2, 3, 4] regex: /match[ing](every|thing|\/)/gi @@ -139,3 +137,10 @@ Exclaimer: name => this.name: name. # Create the child obje Exclaimer.prototype: new Greeter() # Set the child to inherit from the parent. Exclaimer.prototype.hello: => super(this.name + "!"). # The child's "hello" calls the parent's via "super". (new Exclaimer('Bob')).hello() # Run it. + +# Numbers. +a_googol: 1e100 + +hex: 0xff0000 + +negative: -1.0 \ No newline at end of file