Mercurial Hosting > luan
comparison core/src/luan/impl/LuanStateImpl.java @ 200:9fb218211763
add Package.block();
add LuanException.getFullMessage();
git-svn-id: https://luan-java.googlecode.com/svn/trunk@201 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 03 Jul 2014 22:22:16 +0000 |
parents | 24ede40ee0aa |
children | 5ba136769034 |
comparison
equal
deleted
inserted
replaced
199:8960c81eb4bc | 200:9fb218211763 |
---|---|
66 Closure tailFn; | 66 Closure tailFn; |
67 MtGetterLink mtGetterLink = null; | 67 MtGetterLink mtGetterLink = null; |
68 | 68 |
69 LuanStateImpl() {} | 69 LuanStateImpl() {} |
70 | 70 |
71 private LuanStateImpl(LuanStateImpl luan) { | |
72 super(luan); | |
73 } | |
74 | |
71 @Override public LuanState shallowClone() { | 75 @Override public LuanState shallowClone() { |
72 // if( frame != null ) | 76 // if( frame != null ) |
73 // throw new IllegalStateException("frame isn't null"); | 77 // throw new IllegalStateException("frame isn't null"); |
74 return new LuanStateImpl(); | 78 return new LuanStateImpl(this); |
75 } | 79 } |
76 | 80 |
77 // returns stack | 81 // returns stack |
78 Object[] newFrame(Closure closure, int stackSize, Object[] varArgs) { | 82 Object[] newFrame(Closure closure, int stackSize, Object[] varArgs) { |
79 returnValues = LuanFunction.NOTHING; | 83 returnValues = LuanFunction.NOTHING; |