comparison src/luan/impl/LuanCompiler.java @ 1561:e1a13e707bf3

start immutable
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 05 Nov 2020 20:24:09 -0700
parents 6c830be6be98
children 8fbcc4747091
comparison
equal deleted inserted replaced
1560:33a53c43e2f7 1561:e1a13e707bf3
38 } catch(IllegalAccessException e) { 38 } catch(IllegalAccessException e) {
39 throw new RuntimeException(e); 39 throw new RuntimeException(e);
40 } catch(InvocationTargetException e) { 40 } catch(InvocationTargetException e) {
41 throw new RuntimeException(e); 41 throw new RuntimeException(e);
42 } 42 }
43 closure.upValues[0].o = PackageLuan.requireFn(luan); 43 closure.upValues[0].set( PackageLuan.requireFn(luan) );
44 if( env != null ) { 44 if( env != null ) {
45 closure.upValues[1].o = env; 45 closure.upValues[1].set(env);
46 env.closure = closure; 46 env.closure = closure;
47 } 47 }
48 return closure; 48 return closure;
49 } 49 }
50 50