Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
669:e320488819b6 | 670:58ebfec6178b |
---|---|
1 package luan.impl; | |
2 | |
3 import luan.DeepCloneable; | |
4 import luan.DeepCloner; | |
5 | |
6 | |
7 public final class Pointer implements DeepCloneable { | |
8 public Object o; | |
9 | |
10 @Override public Pointer shallowClone() { | |
11 return new Pointer(); | |
12 } | |
13 | |
14 @Override public void deepenClone(DeepCloneable clone,DeepCloner cloner) { | |
15 ((Pointer)clone).o = cloner.get(o); | |
16 } | |
17 } |