4 ms·
With your proposal, how is the dimension determined from `char a[...]` syntax? Does it act like an implicit struct with standardized names for the size_t dimen
by jsd1982 3y ago
With your proposal, how is the dimension determined from `char a[...]` syntax?
Does it act like an implicit struct with standardized names for the size_t dimension and char* pointer fields?
- WalterBright 3y agoThere are options. The D way is to have a `.length` suffix, which makes it act like a struct field. (And `.ptr` if you want to access the pointer part directly.) Another way is to have a special construct, like C's _Generic, to provide the access.