view src/luan/LuanFunction.java @ 163:3c95a2291d64

make all module fns non-global and make global fns call module fns git-svn-id: https://luan-java.googlecode.com/svn/trunk@164 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 20 Jun 2014 09:32:36 +0000
parents cc3a0578edac
children
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>";
	}

}