Support for iterator-style for loops, and "pairs" builting function

This commit is contained in:
James Roseborough
2007-06-10 22:53:09 +00:00
parent e1e6625aa1
commit de763e0a1e
8 changed files with 98 additions and 20 deletions

View File

@@ -10,6 +10,14 @@ public class LDouble extends LNumber {
this.m_value = value;
}
public boolean equals(Object o) {
return o != null && o instanceof LDouble && m_value == ((LDouble)o).m_value;
}
public int hashCode() {
return (int) m_value;
}
public String luaAsString() {
return String.valueOf(m_value);
}