SPANIMを実装.
This commit is contained in:
1 parent
8e0a4e0ae4
commit
8c38a2306d
4 files changed
+290
-19
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user