Re: Rob's going to hate me... (Remainder bug)
- Posted by "Derek Parnell" <ddparnell at bigpond.com> Nov 09, 2003
- 592 views
----- Original Message ----- From: "Irv Mullins" <irvm at ellijay.com> To: <EUforum at topica.com> Subject: Re: Rob's going to hate me... (Remainder bug) > > > On Saturday 08 November 2003 06:38 pm, Daniel wrote: > > > I think it would be good to have multiple instances of the same include > > running, like > > include something.e {insta,instb,instc,instd,inste,instf} > > but I dont know if that is a good Idea maybe havinga better handle on > > scope while writing the include is better > > It *is* a good idea. I'm doing that right now, and it is very useful. > A program I'm working on has 3 different lists. Each "include" which > managed a list (adding, deleting, editing items) was about 160 lines of code. > I've replaced those 3 with a single include, included 3 times, saving 2/3 of > the code, and making changes, bug fixes, etc. far easier (there's only one > place to fix, instead of 3) > > Later, when I have 6 or 7 lists, I'll _still_ have only about 160 lines of > code driving all the lists, so the savings could be significant. > > Which is exactly the effect I get in win32lib but without multiple includes. -- Derek