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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,23cf9f1e93744eed X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-01 06:59:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newshub.sdsu.edu!tethys.csu.net!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Need advice re package organization. Date: 01 Aug 2003 09:51:51 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3F228F3B.9020203@attbi.com> <3F22F9E9.3040307@attbi.com> <5jn9ivoetll1fu2avn9hmjj6aaa7q7pmjn@4ax.com> <9d2Wa.301$jp.253@newsread4.news.pas.earthlink.net> <3F299920.9070603@attbi.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1059745994 8988 128.183.235.92 (1 Aug 2003 13:53:14 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 1 Aug 2003 13:53:14 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:41126 Date: 2003-08-01T13:53:14+00:00 List-Id: "Chad R. Meiners" writes: > "Robert I. Eachus" wrote in message > news:3F299920.9070603@attbi.com... > > So the advantage of supplying the inquiry functions is that you can > > later change the data layout, add new components, change > > representations, or even make some values which were originally explicit > > virtual. I think a much better solution to your problem is a tool that > > automatically generates the inquiry functions from the type declaration. > > Sounds like a good candidate for adding to the Emacs ada-mode. > > Or a type builder wizard in GPS! ;-) The core tool is probably best written in Ada using ASIS; it would be somewhat similar to Auto_Text_IO. Emacs ada-mode and GPS could provide user interfaces to the tool, but it would really need to be run as part of the build process (from a makefile). Hmm. That would imply that the inquiry functions where in a child package; no problem if they don't need to be dispatching. -- -- Stephe