| Summary: | Initialization fails for some kinds of lists | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Matt Heitz <mheitz> |
| Component: | EDT | Assignee: | Matt Heitz <mheitz> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Matt Heitz
Fixed by creating an interface for objects that can create elements, and passing it to the constructor and the resize function. We have various implementors of the interface, to cover the various cases of list of primitives, objects, and multi-dimensional lists.
Note that it's valid to declare an array of non-nullable anys without an initializer, like this:
x any[];
You're also allowed to call resize on the array, but if new elements need to be added, the resize function will throw an exception. This is what Tim wants (it's better than having some special check that prevents you from calling resize on an array of anys).
Verified. |