From 4a81610a54b43b2084976ee4ebc86b3b94fb047c Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 5 May 2019 19:50:11 -0400 Subject: Can now set the name of the "this" object, instead of being forced to use "_jvm_this". --- stdlib/source/lux/target/jvm/loader.old.lux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/source/lux/target/jvm/loader.old.lux') diff --git a/stdlib/source/lux/target/jvm/loader.old.lux b/stdlib/source/lux/target/jvm/loader.old.lux index 0ca92fa23..57a715107 100644 --- a/stdlib/source/lux/target/jvm/loader.old.lux +++ b/stdlib/source/lux/target/jvm/loader.old.lux @@ -95,11 +95,11 @@ (-> Library java/lang/ClassLoader) (object [] java/lang/ClassLoader [] [] - (java/lang/ClassLoader (findClass {class-name java/lang/String}) java/lang/Class + (java/lang/ClassLoader (findClass self {class-name java/lang/String}) java/lang/Class (let [classes (|> library atom.read io.run)] (case (dictionary.get class-name classes) (#.Some bytecode) - (case (|> _jvm_this + (case (|> self (..define class-name bytecode)) (#error.Success class) (:assume class) -- cgit v1.2.3