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=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,836e43045b715f57 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Package reformatting tool availability Date: 1999/09/03 Message-ID: <7qpep9$2np$1@nnrp1.deja.com>#1/1 X-Deja-AN: 520735860 References: <37CFFA58.FFC67480@res.raytheon.com> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri Sep 03 21:32:25 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-09-03T00:00:00+00:00 List-Id: In article <37CFFA58.FFC67480@res.raytheon.com>, Andy Askey wrote: > Hello, > > I have several Ada legacy packages that contain multiple types. I > prefer that each type is in its own package/file for my Ada95 > development effort. Does anyone have (or know of) a script or other > tool that will turn a package with multiple types into multiple packages > with one type? Actually this is FAR more than a simple script can do, and indeed is not generally possible. Certainly if you have completely unrelated types in a single package with completely separate primitive operations, then the package should be split, but this is not the normal case. THe normal case is that you have multiple types in a single package is that they are related, and for example, you have operations that are primitive in more than one type. Asking how to break such packages into separate pieces so that there is only one type per package is like asking how to steer a car with the special proviso that you are not allowed to touch the steering wheel. The ability in Ada to have multiple types per package is one of the powerful features of the language, and it is quite difficult to do without if the program you are working with takes advantage of this feature. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.