| 345 | } |
| 346 | |
| 347 | var Factory::createArray(int numElements) |
| 348 | { |
| 349 | if (initResult.wasOk()) |
| 350 | { |
| 351 | auto newElement = new Array(getScriptProcessor(), numElements); |
| 352 | newElement->compareFunction = compareFunction; |
| 353 | newElement->init(this); |
| 354 | arrays.add(newElement); |
| 355 | return var(newElement); |
| 356 | } |
| 357 | |
| 358 | return {}; |
| 359 | } |
| 360 | |
| 361 | var Factory::createStack(int numElements) |
| 362 | { |