FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

implementing a gobject subclass in d

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
jpf2



Joined: 15 Aug 2009
Posts: 7

PostPosted: Tue Feb 02, 2010 10:54 am    Post subject: implementing a gobject subclass in d Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Feb 02, 2010 2:43 pm    Post subject: Reply with quote

It should be possible, but i don't know how.
Back to top
View user's profile Send private message
jpf2



Joined: 15 Aug 2009
Posts: 7

PostPosted: Wed Feb 03, 2010 7:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group