hugopl / gi-crystal

Tool to generate Crystal bindings for gobject-based libraries (i.e. GTK)
BSD 3-Clause "New" or "Revised" License
45 stars 3 forks source link

Implement a memory safe way to connect signals. #152

Open hugopl opened 2 months ago

hugopl commented 2 months ago

Fixes #150

I'll try to port Tijolo to this API, if everything works then I can merge this.

After merge this, there will only one more release before tag the .connect methods deprecated.

I need to write more tests... e.g. signals that return values doesn't work because the connect macro doesn't have return value information.

I also need to add more user friendly compiler error messages... anyway, it looks good for a POC.

hugopl commented 2 months ago

This POC doesn't handle parameters others than primitive types... nothing really hard to implement, but require a bit of time to do so... anyway, it's on my queue.