Dynamically Sized Structs

Dicebot public at dicebot.lv
Thu Apr 17 10:42:49 PDT 2014


On Thursday, 17 April 2014 at 17:35:17 UTC, bearophile wrote:
> Kagamin:
>
>> Bound checked version of variable size struct: 
>> http://dpaste.dzfl.pl/fcd91d6912d3
>
> I think you are missing one of the main points of a variable 
> sized struct, that is to reduce by 1 the number of indirection 
> levels.
>
> Bye,
> bearophile

Yeah, otherwise one could have just used dynamic array field.


More information about the Digitalmars-d-learn mailing list