Change representation of dynamic arrays?

Vladimir Panteleev thecybershadow at gmail.com
Sat Oct 20 03:38:40 PDT 2007


On Sat, 20 Oct 2007 12:15:14 +0300, Janice Caron <caron800 at googlemail.com> wrote:

> On 10/20/07, Walter Bright <newshound1 at digitalmars.com> wrote:
>> What does this break?
>>
>> 3) It breaks binary compatibility with libraries already compiled.
>
> It also breaks binary compatibility with object files already
> compiled. I don't use dsss do I don't know how that will deal, but
> anyone using a makefile or some other build system needs to make sure
> that .obj files are dependent, not only on the correstponding .d file,
> but also on dmd.exe (or platform equivalent), so that the rebuild
> automatically updates the .obj file when dmd changes.

I guess that could be fixed by changing the name mangling for dynamic arrays.
Then the users will be forced to rebuild their apps (unless they pass dynamic arrays hidden in void pointers or arrays).

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list