1
0

SPANIMを実装.

This commit is contained in:
otya128
2015-08-20 22:58:35 +09:00
parent 8e0a4e0ae4
commit 8c38a2306d
4 changed files with 290 additions and 19 deletions

View File

@@ -82,6 +82,10 @@ struct Value
{
return this.type == ValueType.Integer || this.type == ValueType.Double;
}
bool isString()
{
return this.type == ValueType.String;
}
int castInteger()
{
return this.type == ValueType.Integer ? this.integerValue : (this.type == ValueType.Double ? cast(int)this.doubleValue : 0);