Implement PUSH/POP STR$
This commit is contained in:
1 parent
ffd8743ed6
commit
5c594daba7
2 files changed
+21
-2
No files matched your search
@@ -61,6 +61,11 @@ struct Value
|
||||
this.type = ValueType.String;
|
||||
stringValue = new Array!wchar(value);
|
||||
}
|
||||
this(wchar value)
|
||||
{
|
||||
this.type = ValueType.String;
|
||||
stringValue = new Array!wchar([value]);
|
||||
}
|
||||
this(Array!wchar value)
|
||||
{
|
||||
this.type = ValueType.String;
|
||||
@@ -422,6 +427,15 @@ class Array(T)
|
||||
array ~= v;
|
||||
dim[0]++;
|
||||
}
|
||||
void push(Array!T v)
|
||||
{
|
||||
if (dimCount != 1)
|
||||
{
|
||||
throw new TypeMismatch();
|
||||
}
|
||||
array ~= v.array;
|
||||
dim[0] = cast(int)length;
|
||||
}
|
||||
T pop()
|
||||
{
|
||||
if (dimCount != 1)
|
||||
|
||||
Reference in new issue
Block a user