3 ms·
> If you can't tell how big something is at all, the program is broken and will probably fail randomly. That's not what I said at all. It's the exact opposite
by dataflow 3y ago
> If you can't tell how big something is at all, the program is broken and will probably fail randomly.
That's not what I said at all. It's the exact opposite of what I said. Why this strawman? I already replied above and explained very clearly that I'm talking about when the size is known but not via the struct itself:
>>> the expression doesn't have to come from the same struct, though. It could be provided somewhere else.
>> It might very well be straightforward to obtain, just not located in that struct itself.
The size could be communicated in a different struct, no? Or passed back to the caller via a pointer argument? Or a million other ways beside the same struct itself?