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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b62e7ab9d2ecde12 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail From: Gene Newsgroups: comp.lang.ada Subject: Re: Thanks Guys: Re: Predefined Packages Date: Sat, 16 Jun 2007 09:25:50 -0700 Organization: http://groups.google.com Message-ID: <1182011150.415001.258260@q75g2000hsh.googlegroups.com> References: NNTP-Posting-Host: 70.101.174.178 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1182011150 17131 127.0.0.1 (16 Jun 2007 16:25:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 16 Jun 2007 16:25:50 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q75g2000hsh.googlegroups.com; posting-host=70.101.174.178; posting-account=ZFTPUQ0AAABW8AYEou9RtrBd-zTxz0_y Xref: g2news1.google.com comp.lang.ada:16211 Date: 2007-06-16T09:25:50-07:00 List-Id: On Jun 15, 5:28 am, a...@anon.org (anon) wrote: > Thanks for the info. I knew that Gnat had too many packages with in > it structure. > > And after finding a number of packages in GNAT that initially do not > work. An example is the "System.Partition_Interface" or files > "s-parint.adb" and "s-parint.ads" which should allow one to read the > partitioning tables but GNAT says this is a dummy package unless > you download another of its many software packages that contains > an replacement package. Why include this package in the first place > just include it in the extra software package only. So I decide to ask > the question. Hard to tell from what you wrote here. I seem to be missing the first part of the conversation. Anyway, Partition_Interface is about Ada Annex E partitions in distributed systems. It would be pretty useless to have the functional version if your system isn't configured with Annex E (i.e. Glade). Glade is available. If you want to check it out, go get it. Perhaps you're thinking this package has something to do with disk partitions? This isn't the case. Other library stubs are there for similar reasons. Having the functional code in the libarary would be pure bloat. Having stubs can be useful. For example, you can compile and run some Annex E code on a machine without Annex E. I agree that the existence of the stubs is not well-documented. A compiler warning would be nice. Yes the GNAT package structure is fine-grained, but I diagree that the system has "too many packages." The packages are for the most part nicely aligned with the objects or logical constructs they handle (i.e. sections of the ALRM). If you have a reasonable environment, the number and size of packages ought not to be worth worrying about.