On 01-06-2019 03:33, Alex X wrote:

One of the problems I have with using gtkD is finding proper conversion from gtk code written in C/C++ and that of D. Since gtkD uses a more object oriented approach and has some name chances, it makes it hard to find what converts to what.

I wonder if something could be done about this?

Suppose there was a help page where one could enter in the gtk name(or code) and get the gtkD equivalent.

It wouldn't have to be perfect, just work most of the time(which is better than none of the time).

I wonder if generating such a mapping could be somewhat automated by simply doing a search in the code for the c name and then getting the D function that wraps it(since most are wrapped). This is basically what I do by hand. I search the gtkD source and then go through all the matches. It works but is slow and error prone.

Maybe we should put the original GTK function name in the documentation
so a search would turn up the correct d function.