aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
authorEduardo Julian2022-06-14 02:33:54 -0400
committerEduardo Julian2022-06-14 02:33:54 -0400
commitc4d938ebb2f5245b4c3faa22c4f217e7e818589f (patch)
treeb4ffb4ece96cd711c270932ca500c49192c6bb46 /lux-python
parent63dec2e80905100ae2b48ada1d4e0d675338d00f (diff)
Better syntax for invoking super methods inside overriden methods.
Diffstat (limited to '')
-rw-r--r--lux-python/source/program.lux9
1 files changed, 6 insertions, 3 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index 1bdc743c0..2704b0e80 100644
--- a/lux-python/source/program.lux
+++ b/lux-python/source/program.lux
@@ -307,7 +307,10 @@
[(java/lang/Class java/lang/Object) ..object_class
java/lang/Object (as java/lang/Object it)]
... Methods
- (LuxValue [] (value self []) java/lang/Object (as java/lang/Object it))
+ (LuxValue
+ [] (value self [])
+ java/lang/Object
+ (as java/lang/Object it))
(org/python/core/PyArray
[] (pyget self [index' int])
@@ -316,7 +319,7 @@
(as (Array Any))
(array.item (|> index' ffi.int_to_long (as Nat))))
{.#None}
- (::super! [index'])
+ (pyget "super" [index'])
{.#Some it}
(<| (case (ffi.as [java/lang/Object] (as java/lang/Object it))
@@ -329,7 +332,7 @@
(pseudo_function to_host it)
{.#None})
- (::super! [index']))))
+ (pyget "super" [index']))))
)))
(def: (to_host it)