Re: Why isn't intended class constructor called?

2019-01-28 Thread Zak via Digitalmars-d-learn
On Monday, 28 January 2019 at 19:15:04 UTC, Zak wrote: On Monday, 28 January 2019 at 18:50:18 UTC, Alex wrote: On Monday, 28 January 2019 at 18:34:44 UTC, Zak wrote: [...] As the error states: you are trying to append an int to a string array in the single parameter constructor. [...] Th

Re: Why isn't intended class constructor called?

2019-01-28 Thread Zak via Digitalmars-d-learn
On Monday, 28 January 2019 at 18:50:18 UTC, Alex wrote: On Monday, 28 January 2019 at 18:34:44 UTC, Zak wrote: [...] As the error states: you are trying to append an int to a string array in the single parameter constructor. [...] Thanks for the response, Alex! But it's not clear to me w

Why isn't intended class constructor called?

2019-01-28 Thread Zak via Digitalmars-d-learn
I have defined a class that's meant to represent a data series, which has an index and a set of values. Sometimes the user wants to specify a particular index of custom type, other times they don't care and we want to default to an array of contiguous "int" starting from 0. I have attempted