[Issue 12118] Modify immutable data using throw

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 9 12:48:42 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12118


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-09 12:48:38 PST ---
Interesting.. but I don't see how this can be solved except disallowing
throwing non-mutable objects. Otherwise you'd end up in a situation where "try
{ } catch (Throwable) { }" could let an Exception through because it's
non-mutable.

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


More information about the Digitalmars-d-bugs mailing list