Mercurial Hosting > luan
comparison core/src/luan/LuanFunction.java @ 423:1eafb11a150d
remove Luan.repr()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 May 2015 16:30:28 -0600 |
parents | af82b266fe89 |
children | 6cc2f047019b |
comparison
equal
deleted
inserted
replaced
422:af82b266fe89 | 423:1eafb11a150d |
---|---|
1 package luan; | 1 package luan; |
2 | 2 |
3 | 3 |
4 public abstract class LuanFunction implements LuanRepr { | 4 public abstract class LuanFunction { |
5 | 5 |
6 public abstract Object call(LuanState luan,Object[] args) throws LuanException; | 6 public abstract Object call(LuanState luan,Object[] args) throws LuanException; |
7 | 7 |
8 public static final Object[] NOTHING = new Object[0]; | 8 public static final Object[] NOTHING = new Object[0]; |
9 | 9 |
10 @Override public String toString() { | 10 @Override public String toString() { |
11 return "function: " + Integer.toHexString(hashCode()); | 11 return "function: " + Integer.toHexString(hashCode()); |
12 } | 12 } |
13 | 13 |
14 @Override public String repr(LuanState luan) { | |
15 return "<" + toString() + ">"; | |
16 } | |
17 | |
18 } | 14 } |