Dynamically Sized Structs

Dicebot public at dicebot.lv
Thu Apr 17 10:50:29 PDT 2014


On Thursday, 17 April 2014 at 17:45:22 UTC, Kagamin wrote:
> 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
>
> As far as I can see, my implementation has only 1 indirection 
> level.

And C-like dynamic structs have 0 indirection.


More information about the Digitalmars-d-learn mailing list