Heterogeneous CT array like structure
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 16 15:59:36 PDT 2016
On Tuesday, 16 August 2016 at 19:31:02 UTC, Engine Machine wrote:
> This seems like a long winded way of just creating a struct in
> the first place, which might bet the simplest way anyways.
I literally said "Just create an ordinary struct..."
That's how I'd do it, though there are other options too.
> All this is just trying to be lazy. I could just edit a struct
> and add the variables as I create them.
Editing a struct is probably the least-work option.... it is hard
to get simpler than just adding "bool newOption;" to the one
place (the surrounding arg handling, file load/saving, etc., can
all be automated from the struct content.)
More information about the Digitalmars-d-learn
mailing list