[Issue 1985] New: import expression should return ubyte[] not string
Janice Caron
caron800 at googlemail.com
Fri Apr 11 00:20:10 PDT 2008
On 11/04/2008, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
> > Shouldn't it return invariant(ubyte)[] ?
>
> In D2 probably so, but I filed the bug against D1.028.
Makes sense.
I suppose in D2 it depends on the answer to the following question. If I write
auto a = import("filename");
auto b = import("filename");
do we get two separate copies, or do a and b both point to the same
memory? If the latter, it should definitely be invariant(ubyte)[] in
D2, though as you say, ubyte[] in D1.
More information about the Digitalmars-d-bugs
mailing list