aboutsummaryrefslogtreecommitdiff
path: root/lux-ruby
diff options
context:
space:
mode:
authorEduardo Julian2022-03-30 14:05:57 -0400
committerEduardo Julian2022-03-30 14:05:57 -0400
commit381ec5920d9ebeb335963778dec182268819e718 (patch)
tree5c9288c5fbb16c21a0f00f96710b0aa7db4585f4 /lux-ruby
parent1a962ee4b03f51f46a5979bfefc954f35ee3a1b7 (diff)
Now demanding mandatory loop names, instead of using default "again" name.
Diffstat (limited to 'lux-ruby')
-rw-r--r--lux-ruby/source/program.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/lux-ruby/source/program.lux b/lux-ruby/source/program.lux
index 86dd1d553..6270cba1c 100644
--- a/lux-ruby/source/program.lux
+++ b/lux-ruby/source/program.lux
@@ -235,9 +235,9 @@
(def: (read_tuple read host_object)
(-> Translator org/jruby/RubyArray (Try Any))
(let [size (.nat (ffi.of_int (org/jruby/RubyArray::getLength host_object)))]
- (loop [idx 0
- output (is (Array Any)
- (array.empty size))]
+ (loop (again [idx 0
+ output (is (Array Any)
+ (array.empty size))])
(if (n.< size idx)
(case (org/jruby/RubyArray::get (ffi.as_int (.int idx)) host_object)
{.#None}