Mercurial Hosting > luan
view src/luan/impl/Pointer.java @ 1496:6c830be6be98
parse fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 08 May 2020 10:46:13 -0600 |
parents | 6a7c6879158d |
children | e1a13e707bf3 |
line wrap: on
line source
package luan.impl; import luan.LuanCloneable; import luan.LuanCloner; public final class Pointer implements LuanCloneable { public Object o; public Pointer() {} public Pointer(Object o) { this.o = o; } @Override public Pointer shallowClone() { return new Pointer(); } @Override public void deepenClone(LuanCloneable clone,LuanCloner cloner) { ((Pointer)clone).o = cloner.get(o); } }