Mercurial Hosting > luan
comparison src/luan/LuanClosure.java @ 1561:e1a13e707bf3
start immutable
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 20:24:09 -0700 |
parents | 221eedb0f54e |
children | 8fbcc4747091 |
comparison
equal
deleted
inserted
replaced
1560:33a53c43e2f7 | 1561:e1a13e707bf3 |
---|---|
19 LuanClosure clone = (LuanClosure)dc; | 19 LuanClosure clone = (LuanClosure)dc; |
20 clone.upValues = (Pointer[])cloner.clone(upValues); | 20 clone.upValues = (Pointer[])cloner.clone(upValues); |
21 super.completeClone(dc,cloner); | 21 super.completeClone(dc,cloner); |
22 } | 22 } |
23 | 23 |
24 @Override public void makeImmutable(LuanImmutabler immutabler) throws LuanException { | |
25 immutabler.makeImmutable(upValues); | |
26 super.makeImmutable(immutabler); | |
27 } | |
28 | |
24 @Override public final Object call(Object... args) throws LuanException { | 29 @Override public final Object call(Object... args) throws LuanException { |
25 Luan luan = luan(); | 30 Luan luan = luan(); |
26 luan.push(this); | 31 luan.push(this); |
27 try { | 32 try { |
28 return doCall(luan,args); | 33 return doCall(luan,args); |