maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   HILDON_WINDOW ( ... ) a cast function? (https://talk.maemo.org/showthread.php?t=37884)

jaywhy13 2009-12-20 18:31

HILDON_WINDOW ( ... ) a cast function?
 
I'm not sure if this question wasn't answered because of where I posted it. I'm pasting the link here.

http://talk.maemo.org/showthread.php?t=35758

Where can I get questions like these answers? Code related questions .i.e.

conny 2009-12-20 18:54

Re: HILDON_WINDOW ( ... ) a cast function?
 
Quote:

Originally Posted by jaywhy13 (Post 435549)
I'm not sure if this question wasn't answered because of where I posted it. I'm pasting the link here.

http://talk.maemo.org/showthread.php?t=35758

Where can I get questions like these answers? Code related questions .i.e.

Yes, those macros are basically casts. You don't _need_ them, but you should use them as they also check that the cast is a correct one. Because C doesn't have a build-in object system you can make invalid casts (e.g. cast a GtkButton to GtkWindow) without that the compiler tells you.
If you use those macros you will at least get runtime errors what/where it went wrong.

Not sure if this was understandable ;) If not, please tell me...

Ah yea, and the "Development" forum is probably better suited then the "Community" forum. So here this thread should be fine :)


All times are GMT. The time now is 10:38.

vBulletin® Version 3.8.8