[Issue 15853] New: [std.random] save method must be immutable

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Mar 30 11:59:27 PDT 2016


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

          Issue ID: 15853
           Summary: [std.random] save method must be immutable
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/phobos/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: rogonovstepan at gmail.com

Created attachment 1593
  --> https://issues.dlang.org/attachment.cgi?id=1593&action=edit
definition save method in phobos library on 2016-03-30

can't call save method for immutable Mt19937.
this method must be immutable because it possible to create mutable copy of
immutable object

--


More information about the Digitalmars-d-bugs mailing list