Skip to content

Commit

Permalink
add the x prefix to make the object compatible with my generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
dours committed May 24, 2022
1 parent 5a099e5 commit 3d8ce49
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions runEO/my-array.eo
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
[] > result
cage > value

[] > length
[] > xlength
[self] > apply
[stackUp] > @
seq > @
stackUp.forward (return (self.value.length))
123

[] > get
[] > xget
[self i] > apply
[stackUp] > @
seq > @
stackUp.forward (return (self.value.get i))
123

[] > append
[] > xappend
[self x] > apply
[stackUp] > @
seq > @
Expand All @@ -46,7 +46,7 @@

(goto ((xmyArray.apply (*)).@)).result > a
seq > @
(goto ((a.append.apply a 2).@)).result
(goto ((a.xappend.apply a 2).@)).result
and.
((goto ((a.length.apply a).@)).result.eq 1)
(goto ((a.get.apply a 0).@)).result.eq 2
((goto ((a.xlength.apply a).@)).result.eq 1)
(goto ((a.xget.apply a 0).@)).result.eq 2

0 comments on commit 3d8ce49

Please sign in to comment.