RE: [Gtk1-win-developers] casts
Brought to you by:
robinrowe
From: Donald M. <do...@dr...> - 2003-12-08 16:10:03
|
I have found a better solution to the "initializer element is not constant" problem that I was trying to solve. It seems that if gcc is allowed to use the auto import then everything works just fine. If under gcc the __declspec(dllimport) is removed then there is no problem. http://www.cygwin.com/ml/cygwin/2003-01/msg00056.html Donald. > -----Original Message----- > From: gtk...@li... > [mailto:gtk...@li...] On > Behalf Of Robin Rowe > Sent: 04 December 2003 01:06 > To: gtk...@li... > Subject: Re: [Gtk1-win-developers] casts > > Donald, > > > If we were to use g++ all cast would need to be made > explictly, would > > there be any objections to this? > > Sounds good, but I don't like bare casts because they are > tricky to find. > Can you use a macro like this? > > #define CAST(t) (t) > > float a = 1.0; > int b = CAST(int) a; > > I prefer that over the new C++ cast syntax. Simple, works in > C, easy to > grep. > > Cheers, > > Robin > -------------------------------------------------------------- > ------------- > Rob...@Mo... Hollywood, California > www.CinePaint.org Free motion picture and still image > editing software > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Gtk1-win-developers mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk1-win-developers > |