From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4fe37c439e7925b4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-21 10:33:41 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!gumby!yale!yale!cosby From: cosby@greatwall.cctt.com (John Cosby) Newsgroups: comp.lang.ada Subject: Re: compilation time [was Re: Magnavox consultant] Date: 21 Oct 1994 13:23:29 GMT Organization: CCTT, Orlando, FL Message-ID: <388fci$i1g@babyblue.cs.yale.edu> References: <386ls1$lu7@news.delphi.com> NNTP-Posting-Host: greatwall.cctt.com Date: 1994-10-21T13:23:29+00:00 List-Id: tmoran@bix.com wrote: >> A 2200-line program is not likely to have many with clauses per >> compilation unit. ... cannot be assumed that this test scales up >> to a large program with complex dependencies among compilation units. >That raises the interesting question of how the number of with's >scales with total program size in the real world. Presumably in a >good modular design it's much less than linear, but how much? There >are rules of thumb about 'a single module shouldn't be more than >N lines' - should a single module not have more than M with's? I'll have to vote against making that a hard and fast rule. I've been writing X/Motif user interface code using Ada bindings for a couple of years, and I find the folks who generated the bindings subdivided their packages pretty well. Unfortunately, to get anything done with a complex window, I have to with several packages; in one callback package, I have 7 with's for X, X_Lib, and Xm packages, before I begin withing application packages to call for services. If there were a programmatic guideline that I could only have M with's per N lines, I'd have had to apply for a waiver, unless the M was set so high as to not really matter. --- John Cosby - cosby@greatwall.cctt.com - cosbyj@nefarious.saic.com I've been porting bits of Ada back to C lately... my brain thinks it got thrown into reverse....