Hi Thomas,
1) Use the class container also for polymorphic arrays, and have the
"$data" field point to an array descriptor.
I have to confess my ignorance here, but...
Can different array elements have different types? If so, this method
probably would not work.
no, IIUC all array elements must have the same dynamic type. (Btw your
comment applies in the same way to the second option I proposed.)
To be honest, I have not found any direct statement on this in the
standard. But I would not know how to set up an array which has
different dynamic types, because:
[...]