On 10/30/05, Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote:

Follow-up Comment #1, patch #4575 (project gnustep):

These are minor quibbles ...

1. You create a global variable '__gui_theme', but provide setter/getter
methods +setTheme: and -getTheme:

Now ... if it's really intended to be a global variable, I think it should
follow standard naming conventions and be called something like GSGUITheme
(but then the set/get matchods aren't needed).

If it's not intended to be global, it should be declared static ... but it
should perhaps have a more conventional name
eg 'theTheme'.

Er, yes, I forgot to declare it static.. it's not meant to be a global variable, although it could be after all..  but I think  having it static is better.

2. You define a macro in the public header ... THEME to return the object ...
but again we should have a name like GSTHEME to avoid possible conflicts with
user code.

I'll perhaps just get rid of that macro.

Thanks,

--
Nicolas Roard
"Any sufficiently advanced technology is indistinguishable from magic."
  -Arthur C. Clarke
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to