Top 5

Jerry Quinn jlquinn at optonline.net
Wed Oct 8 21:15:54 PDT 2008


Andrei Alexandrescu Wrote:

> Denis Koroskin wrote:
> > On Thu, 09 Oct 2008 00:07:27 +0400, Andrei Alexandrescu 
> > <SeeWebsiteForEmail at erdani.org> wrote:
> > 
> >> Ok, per Aarti's suggestion: without speaking officially for Walter, 
> >> let me ask this - what do you think are the top issues you'd like to 
> >> see fixed in D?
> >>
> >> Andrei
> > 
> > Oh, I forgot about these:
> 
> > [Minor|Wish] overlapping array operation. The following should be 
> > allowed, even if it makes things slightly slower. Why user should care?
> > void foo(T[] t1, T[] t2) {
> >     ...
> >     t1[] = t2[]; // overlap or not? who knows..
> >     t1[0..100] = t1[10..110]; // yes, they do, so what?
> >     ...
> > }
> 
> I think this often indicates an error.

This is just overlapping memcpy.  I've wanted to do this several times and get annoyed that I have to go looking into std.algorithm for something that really should be in the language.  If the compiler can tell it's overlapping, it can write out the safer copying versions required.

Jerry



More information about the Digitalmars-d mailing list