style
sclytrack at pi.be
sclytrack at pi.be
Mon May 22 02:24:23 PDT 2006
I was wondering about the style to be used in D, especially related to private
and protected members.
Java has get and set methods.
class Window {
private:
char [] caption;
public:
char [] getCaption() {}
}
Is above good D-style?
Below you already need 2 or 3 names. Which names should they be?
class Window
{
private:
//What name should this be, of course one can choose because its private.
//Borland goes with FCaption;
char [] mcaption;
public:
char [] caption() {}
void caption(char[] pcaption)
{
mcaption = pcaption;
}
}
So give me the best D-style names. :-)
More information about the Digitalmars-d
mailing list