We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df6ae1a commit 2cccb7fCopy full SHA for 2cccb7f
lib/core/fixnum.rb
@@ -1,6 +1,18 @@
1
2
class Fixnum < Integer
3
4
+ def initialize
5
+ %s(assign @value 0)
6
+ end
7
+
8
+ def __set_raw(value)
9
+ @value = value
10
11
12
+ def __get_raw
13
+ @value
14
15
16
def + other
17
18
end
@@ -47,3 +59,10 @@ def / other
47
59
48
60
49
61
62
63
64
+%s(defun __get_fixnum (val) (let (num)
65
+ (assign num (callm Fixnum new))
66
+ (callm num __set_raw (val))
67
+ num
68
+))
0 commit comments