view 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 source

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);
	}
}