Sebastian Dröge

Results 678 comments of Sebastian Dröge

Sounds useful. Want to send a PR? :)

You could implement `Downcast` etc on `Option` and then you'd end up with `fn downcast(Option) -> Result`. That would not hide the errors at least while still allowing to directly...

What's your use-case? `glib_wrapper` should handle these just fine, but there's no subclassing support for dynamic types yet.

For usage with a specific library or ...? But if you have any suggestions how that could look like API-wise that would be useful. I'm mostly worried about the safety...

> In my particular case, things go sideways when you call `g_type_get_plugin()` on a instance of a subclass (in C land). That should only return `NULL` but otherwise should not...

Apart from the safety aspects this shouldn't be too hard to implement in any case, see above if you're interested in working on that :)

Sure, feel free to ask here if you need some help :)

On 16 October 2020 00:33:30 EEST, Jonas Platte wrote: >So really anything implementing `ObjectSubclass` must not be constructed without going through some glib functionality? That seems like it would be...