> On 18 feb 2015, at 13:35, Martin Nowak via dmd-beta <[email protected]>
> 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
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta