[Issue 7069] Variant Doesn't Handle Const or Immutable Contents

2014-02-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7069


Kapps  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||opantm2+db...@gmail.com
 Resolution||FIXED


--- Comment #3 from Kapps  2014-02-15 14:21:53 PST ---
This appears to have been fixed in git master:
https://github.com/D-Programming-Language/phobos/commit/6e7eabbd42a7f2e3e555081e1b17893c3c18b6f8

import std.variant, std.stdio;

class Bob {}

void main() {
immutable(Bob) bob = new immutable(Bob)();
writeln(cast(void*)bob);
Variant v = bob;

immutable(Bob) bob2 = v.get!(immutable(Bob))();
writeln(cast(void*)bob2);
}

Prints out

1091E4FF0
1091E4FF0

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 7069] Variant Doesn't Handle Const or Immutable Contents

2013-11-12 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7069


Dicebot  changed:

   What|Removed |Added

 CC||pub...@dicebot.lv
   Severity|normal  |major


--- Comment #2 from Dicebot  2013-11-12 04:59:01 PST ---
This bug prevents std.concurrency from working as advertised (can't send
immutable messages) :
http://forum.dlang.org/post/faxtweqqvpkcgolxz...@forum.dlang.org

Raising importance to "major" because of that.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 7069] Variant Doesn't Handle Const or Immutable Contents

2011-12-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7069


Rob Jacques  changed:

   What|Removed |Added

 CC||sandf...@jhu.edu


--- Comment #1 from Rob Jacques  2011-12-06 16:32:22 PST ---
I've added this to my test suite for improving variant. It causes compile-time
errors in my current code base, but I will work on a fix.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---