How does one cast to an array type?
Adam D. Ruppe
destructionator at gmail.com
Thu Oct 17 12:40:33 UTC 2019
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.
More information about the Digitalmars-d-learn
mailing list