Sorry, I overlooked the spec "No explicit casting of mutable objects to
immutable.".
I don't know the correct behavior but I accept Michel's explanation.
On Sun, 14 Nov 2010 12:52:18 +0900, dsource.org <[email protected]>
wrote:
phobos commit, revision 2165
user: Masahiro Nakagawa
msg:
Remove @safe from assumeUnique. @safe function doesn't allow casting of
mutable object to immutable.
http://www.dsource.org/projects/phobos/changeset/2165
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos