On Thursday, 17 October 2019 at 12:19:03 UTC, Vinay Sajip wrote:
Are arrays and objects part of a unified type system?

No, they are separate. You can define a class that contains an array, but it doesn't work like that automatically.

You'll want to use a wrapper class or a variant type or a template or something for this depending on your exact use case.

Reply via email to