Re: RE : Re: glade code generation

Joaquin Cuenca Abela <[email protected]>
Newsgroups gmane.comp.gnome.glade.devel,gmane.comp.gnome.glademm
Message-ID <[email protected]>
On Sat, 2003-03-08 at 15:01, Murray Cumming wrote:
> On Sat, 2003-03-08 at 15:26, Joaquin Cuenca Abela wrote:
> > Murray wrote:
> > >
> > > > but in fact, you can't do much better if you generate code.
> > > 
> > > C++ has the concept of inheritance. glademm generates only 
> > > base classes.
> > > User-written code is in user-written derived classes.
> > 
> > That's irrelevant.  The question is: what happens when the user edits
> > code that he shouldn't edit and later it regenerates this code?
> 
> He shouldn't. He doesn't have any need to.

In the same sense that when you do a singleton the user should use a
::getInstance method, but you still make the constructors private.  Just
to be sure.

There is an important difference between "he shouldn't" and "he can't".

Cheers,




_______________________________________________
Glade-devel maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-devel
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.