added copy and fixed cleaning of semicolons

This commit is contained in:
gnembon committed 2019-11-04 00:35:32 -04:00
1 parent e2c614c6de
commit efb87c8497
7 files changed
+86 -17

No files matched your search

@@ -189,4 +189,17 @@ public abstract class Value implements Comparable<Value>, Cloneable
if (stringVal.isEmpty()) return 0;
return ("s"+stringVal).hashCode();
}
public Value deepcopy()
{
try
{
return (Value)this.clone();
}
catch (CloneNotSupportedException e)
{
// should never happen
throw new InternalExpressionException("Cannot make a copy of value: "+this);
}
};
}