[Issue 4123] BitArray this() with length

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Apr 24 11:35:50 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=4123

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
I've tried implementing ctors which would get rid of the problem, but then
found some failing code in a unittest:

-----
__gshared BitArray ba = { 10, &x };
-----

$ dmd test.d
> Error: struct BitArray has constructors, cannot use { initializers }, use BitArray( initializers ) instead

I'm not sure whether this is part of the API. Can we break this code?

--


More information about the Digitalmars-d-bugs mailing list