Mercurial Hosting > luan
diff core/src/luan/impl/Pointer.java @ 670:58ebfec6178b
all luan now compiles
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Apr 2016 01:05:57 -0600 |
parents | |
children | 82f130eba7b0 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/src/luan/impl/Pointer.java Tue Apr 12 01:05:57 2016 -0600 @@ -0,0 +1,17 @@ +package luan.impl; + +import luan.DeepCloneable; +import luan.DeepCloner; + + +public final class Pointer implements DeepCloneable { + public Object o; + + @Override public Pointer shallowClone() { + return new Pointer(); + } + + @Override public void deepenClone(DeepCloneable clone,DeepCloner cloner) { + ((Pointer)clone).o = cloner.get(o); + } +}