[dmd-beta] 2.067.0-b2

Jacob Carlborg via dmd-beta dmd-beta at puremagic.com
Sun Feb 22 04:34:04 PST 2015


> On 18 feb 2015, at 13:35, Martin Nowak via dmd-beta <dmd-beta at puremagic.com> wrote:
> 
> The other problem is an unfortunately inevitable backwards incompatibility introduced by making synchronized nothrow.
> Vibe.d is one of the few programs that inherit from core.sync.*
> classes which now have nothrow lock/unlock methods.


I hit the same breaking change in DWT. The implementation is a bit different there compared to Tango [1]. The implementation actually catches the SyncException and is supposed to interrupt the current thread. But “Compatibility.interrupt” is not implemented because the original author never figured out how to port that from Java [2].

[1] https://github.com/d-widget-toolkit/org.eclipse.swt.gtk.linux.x86/blob/master/src/org/eclipse/swt/widgets/Synchronizer.d#L187-L202 <https://github.com/d-widget-toolkit/org.eclipse.swt.gtk.linux.x86/blob/master/src/org/eclipse/swt/widgets/Synchronizer.d#L187-L202>

[2] https://github.com/d-widget-toolkit/org.eclipse.swt.gtk.linux.x86/blob/master/src/org/eclipse/swt/internal/Compatibility.d#L402-L405

-- 
/Jacob Carlborg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20150222/bf96fee9/attachment.html>


More information about the dmd-beta mailing list