View previous topic :: View next topic |
Author |
Message |
jpf2
Joined: 15 Aug 2009 Posts: 7
|
Posted: Tue Feb 02, 2010 10:54 am Post subject: implementing a gobject subclass in d |
|
|
Hi,
is it possible to implement a Gobject subclass in d so that that object could be used from c code as well?
What I want to do is create a Gobject which can hold some values (a void* data pointer and another Gobject) and which has a destructor, so I can free the data pointer.
All C code I found heavily uses macros, so that won't work in gtkd, right? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Feb 02, 2010 2:43 pm Post subject: |
|
|
It should be possible, but i don't know how. |
|
Back to top |
|
|
jpf2
Joined: 15 Aug 2009 Posts: 7
|
Posted: Wed Feb 03, 2010 7:17 am Post subject: |
|
|
thanks for the response.
I guess I can achieve the same thing using objectGSetDataFull/getData, I think in this case it's even the better solution. |
|
Back to top |
|
|
|