Created
November 19, 2013 19:41
-
-
Save BitPuffin/7551230 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BernardOhlsson% nimrod i | |
| /etc/nimrod.cfg(36, 2) Hint: added path: '/home/isak/.babel/pkgs/jester-0.1.0' [Path] | |
| /etc/nimrod.cfg(36, 2) Hint: added path: '/home/isak/.babel/pkgs/' [Path] | |
| Hint: used config file '/etc/nimrod.cfg' [Conf] | |
| Hint: system [Processing] | |
| Hint: stdin [Processing] | |
| >>> type TVector[T, D] = array[D, T] | |
| ... | |
| >>> var a: TVector[float32, range[0..3]] = [0.83f32, 3.83f32, 88.247f32, -74.28f32] | |
| >>> | |
| >>> echo a | |
| stdin(4, 5) Error: type mismatch: got (TVector[float32, range 0..3(int)]) | |
| but expected one of: | |
| system.$(x: TEnum): string | |
| system.$(x: int): string | |
| system.$(x: T): string | |
| system.$(x: int64): string | |
| system.$(x: cstring): string | |
| system.$(x: float): string | |
| system.$(x: T): string | |
| system.$(x: char): string | |
| system.$(x: string): string | |
| system.$(x: bool): string | |
| >>> echo a[0] | |
| 8.2999999999999996e-01 | |
| >>> import math | |
| Hint: math [Processing] | |
| >>> proc add(a, b: TVector): TVector = | |
| ... for i in a.low()..a.high(): | |
| ... result[i] = a[i] + b[i] | |
| ... | |
| >>> var b: TVector[float, range[0..3]] = [0.74, 8484.21, 47.82, 666.1337] | |
| >>> | |
| >>> var c = add(a, b) | |
| stdin(10, 11) Error: type mismatch: got (TVector[float32, range 0..3(int)], TVector[float, range 0..3(int)]) | |
| but expected one of: | |
| stdin.add(a: TVector, b: TVector): TVector | |
| system.add(x: var seq[T], y: T) | |
| system.add(x: var string, y: cstring) | |
| system.add(x: var seq[T], y: openarray[T]) | |
| system.add(x: var string, y: char) | |
| system.add(x: var string, y: string) | |
| >>> var b: TVector[float32, range[0..3]] = [0.74f32, 8484.21f32, 47.82f32, 666.1337f32] | |
| >>> var c = add(a, b) | |
| stack trace: (most recent call last) | |
| ??? | |
| stdin(12) add | |
| stdin(8, 2) Error: cannot evaluate ' | |
| proc add(a, b: TVector): TVector = | |
| for i in low(a) .. high(a): | |
| result[i] = a[i] + b[i] | |
| var c = add(a, b)' | |
| >>> | |
| >>> | |
| >>> q | |
| stdin(15, 0) Error: undeclared identifier: 'q' | |
| >>> quit | |
| stdin(16, 0) Error: type mismatch: got (proc (string, int) | proc (int)) | |
| but expected one of: | |
| system.$(x: TEnum): string | |
| system.$(x: int): string | |
| system.$(x: T): string | |
| system.$(x: int64): string | |
| system.$(x: cstring): string | |
| system.$(x: float): string | |
| system.$(x: T): string | |
| system.$(x: char): string | |
| system.$(x: string): string | |
| system.$(x: bool): string | |
| >>> exit | |
| stdin(17, 0) Error: undeclared identifier: 'exit' | |
| >>> gtfo | |
| stdin(18, 0) Error: undeclared identifier: 'gtfo' | |
| >>> yield | |
| stdin(19, 0) Error: 'yield' only allowed in an iterator | |
| >>> fuck off | |
| stdin(20, 0) Error: undeclared identifier: 'fuck' | |
| stdin(20, 0) Error: undeclared identifier: 'fuck' | |
| stdin(20, 0) Error: undeclared identifier: 'fuck' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment