From: Burkhard P. <pl...@ip...> - 2004-10-06 09:24:00
|
Dennis Smit wrote: > Heya list, > > I've got some things I'd like to discuss: > > Currently in plugins we often do BlahPriv *priv = plugin->priv; > > what do you people think about having something like: > > BlahPriv *priv = VISUAL_PLUGIN_PRIVATE (plugin); > > or, would it nicer to make a define in the > style of visual_plugin_get_private (plugin);, to be in > style with the rest of the accessor methods ? > In all cases, the programmer has to write one line, so typing time is hardly saved. Using BlahPriv *priv = plugin->priv; has the advantage, that everyone knows what's going on, even without reading documentation. I use this method in my whole code. -- _____________________________ Dr.-Ing. Burkhard Plaum Institut fuer Plasmaforschung Pfaffenwaldring 31 70569 Stuttgart Tel.: +49 711 685-2187 Fax.: -3102 |