Re: naming conventions

[email protected] (Robert Roebling)
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
J. Perkins wrote:

> > match those in the wxWindows documentation (and
> > disregard the C# naming scheme for this) so that
> > flags such as wx.Right become wxALIGN_RIGHT or

Currently, it actually is wx.Alignment.Right, I think.

> > simply wx.ALIGN_RIGHT.  What do you think of this?
> 
> That's fine with me. I prefer the second form
> (wx.ALIGN_RIGHT). We could always have both:
> wx.ALIGN_RIGHT and wx.AlignRight set to
> the same value.

I wonder e.g. Qt# does. Do they use QWindow or Q.Window.
Either way, I agree that we should use wx.Frame (or
just Frame in the wx namespace), but I am a litte
unsure about the wx.ALIGN_RIGHT vs. just wxALIGN_RIGHT.
I am used (under all current implementation) to the
second (simple) form although Perl and Python have name
spaces just like C#. It is really a matter of tasts and
we might decide to have both

namespace wx
{
    const int ALIGN_RIGHT = 0x0008;
    const int wxALIGN_RIGHT = ALIGN_RIGHT;
}

  Robert
 
-- 
Robert Roebling, MD <[email protected]>


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.