www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13806] New: std.bitmanip.BitArray -- use of methods named


          Issue ID: 13806
           Summary: std.bitmanip.BitArray -- use of methods named init()
                    messes up templates
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: erikas.aubade gmail.com

It seems to be pretty common and accepted practice to use the static init field
to get default values of an arbitrary templated type--however this pattern will
fail hard on types like BitArray that have methods name init(), and no
overloads that can be called without parameters.

It'd make life a lot easier if these methods could be renamed to something like

Dec 01 2014