Hey Volker, 2010/8/9 Volker <[email protected]>: > Hi koen, > > why not call the macro WSLOT instead and add a define for backwards > compatibilty. As everything else in Wt is prefixed with W.
I would rather not break what currently works (SLOT) for users who are not using Qt. That means that as a Wt/Qt intermixer, you would need to take action (setting a define that disables or renames the SLOT macro). The simplest solution is to remove the SLOT define. If the Qt user prefers a macro, he can #define one for himself like this: #define WSLOT(a, b) a, &b Ultimately, I prefer to move on and forget about the SLOT macro entirely. With c++0x come lambda's and we already have boost::bind() that is convenient for passing additional information to the slot method. These two uses add good functionality and are not compatible with a SLOT macro anyway. ( see also my recent blog post about c++0x lambda's and Wt : http://www.webtoolkit.eu/wt#/blog/2010/08/06/wt_and_c__0x/ ) Regards, koen ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
