view core/src/luan/LuanFunction.java @ 189:fb3993431f76

minor git-svn-id: https://luan-java.googlecode.com/svn/trunk@190 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 26 Jun 2014 16:44:42 +0000
parents 3dcb0f9bee82
children a35d1177bbf0
line wrap: on
line source

package luan;


public abstract class LuanFunction implements LuanRepr {

	public abstract Object call(LuanState luan,Object[] args) throws LuanException;

	public static final Object[] NOTHING = new Object[0];

	@Override public String toString() {
		return "function: " + Integer.toHexString(hashCode());
	}

	@Override public String repr() {
		return "<function>";
	}

}