www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15853] New: [std.random] save method must be immutable

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 puremagic.com
          Reporter: rogonovstepan 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

--
Mar 30 2016