Comments (2)
I see no other way than to make every GtkD method taking delegates only accept nothrow delegates.
Although it would be a breaking change, it's probably the best option.
from gtkd.
I'm worried about what that means for D as a language. There are quite a few libraries written in C/C++ that use callbacks. When you change GtkD it will raise more awareness of the issue. I didn't really know until an exception was thrown in my program and it crashed with a segfault. (It was actually the assembly HLT instruction inside druntime.)
Should D enforce the use of nothrow when binding to C ? I think the D experts would all agree that you should not throw exceptions across D/C borders.
from gtkd.
Related Issues (20)
- Unable to implement CellRenderer.render with ImplementClass HOT 2
- [QUESTION] MainWindow or ApplicationWindow? HOT 4
- Add Support for Composite Templates HOT 2
- Status of custom GObjects HOT 4
- Wrong code format in Widget.d
- Add Gda bindings
- Undefined reference to _D3std6string9toStringzFNaNbNeMNkAyaZPya with ldc2 HOT 11
- bindings for LibAdwaita HOT 3
- Memory allocation failed when compiling with gdc HOT 1
- ListBoxItem toggle_refs_notify: assertion failed HOT 1
- How to Wrap GObject Introspection-based libraries for begginers HOT 4
- cairo win32 support
- New release? HOT 2
- wrapper for Dialog.getHeaderBar returns Widget instead of HeaderBar HOT 1
- Compile failed on Linux with gdc
- GTK4 HOT 2
- Unicode.utf8Validate issue ? HOT 5
- Gtk4 fails loading some icons HOT 1
- Create new tag/release for 3.11
- Need Gtk+ runtime in zip format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtkd.