[glade--]Re: [Glade-devel] Re: glade code generation
[email protected] (Murray Cumming)
| Newsgroups | gmane.comp.gnome.glademm,gmane.comp.gnome.glade.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2003-03-07 at 23:28, Joaquin Cuenca Abela wrote: > How do you solve the second problem with glademm? > > You generate a file, say foo.cpp, with glademm. I edit it, change the > glade file, and regenerate the file. Do you conserve the changes done > to foo.cpp by hand? [snip] > That feasible in any language. But that's not the problem. The problem > is: How do you deal with changes done by hand in the generated code? > > MS deals with this problem adding "please, don't change this code" > comments (and of course, hell opens when you don't follow the advice). > I guess that I don't have to discuss the problems of that approach... > 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. -- Murray Cumming [email protected] www.murrayc.com