Re: [Glade-devel] Re: glade code generation
- From: murrayc t-online de (Murray Cumming)
- To: Joaquin Cuenca Abela <e98cuenc free fr>
- Cc: Christof Petig <christof petig-baender de>, Owen Taylor <otaylor redhat com>, Jon Cast <jcast ou edu>, Mark McLoughlin <mark skynet ie>, Gnome Hackers <gnome-hackers gnome org>, glade-devel ximian com, glademm-list gnome org
- Subject: Re: [Glade-devel] Re: glade code generation
- Date: 08 Mar 2003 12:33:39 +0100
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
murray usa net
www.murrayc.com
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]