Dynamic arrays in D 1.0

Bill Baxter dnewsgroup at billbaxter.com
Tue May 13 01:41:42 PDT 2008


Robert Fraser wrote:
>> Fine point, except Python lists also have append, extend, index, 
>> insert, pop, and remove methods which you can use when they express 
>> your intent better than fidgety slicing expressions.
>>
>> --bb
> 
> It's all a matter of taste. Making those functions is trivial in D; most 
> are one-liners.

And so we come around full circle.  We've been doing a lot of that on 
the newsgroup recently.

They are relatively trivial, but there are still some gotchas in making 
them safe and maximally efficient (e.g. using memmove for better 
performance, etc).

--bb



More information about the Digitalmars-d mailing list