Details

      Description

      Right now FlatArray has two factory method constructors: empty and apply.

      One of these (empty) has a broken signature:

      empty[Boxed, Unboxed](elems: Boxed*)(implicit boxings: BoxingConversions[Boxed, Unboxed], elemManifest: ClassManifest[Unboxed]): FlatArray[Boxed]
      

      The "elems" provided are ignored, so they should be omitted.

      Also, this array lacks a method of specifying a size (without elements) like .ofDim. It should be possible to allocate a FlatArray of a certain size without actually providing all the members.

        Activity

        Hide
        Erik Osheim added a comment -

        I opened a pull request with a patch to fix this issue:

        https://github.com/scala/scala/pull/329

        Show
        Erik Osheim added a comment - I opened a pull request with a patch to fix this issue: https://github.com/scala/scala/pull/329
        Hide
        Erik Osheim added a comment -

        Fixed in 4b0d4571.

        Show
        Erik Osheim added a comment - Fixed in 4b0d4571.

          People

          • Assignee:
            Erik Osheim
            Reporter:
            Erik Osheim
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development