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-Thread: 103376,5c89acd494ea9116 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Self pointer in limited record From: Georg Bauhaus In-Reply-To: References: <1183577468.034566.57830@n60g2000hse.googlegroups.com> <1188578849.187422.280620@50g2000hsm.googlegroups.com> <9fy1xoukz1e3$.h574sqmiauri$.dlg@40tude.net> <46d968ee$0$30368$9b4e6d93@newsspool4.arcor-online.net> <137iu0lr82dtb$.wqy3zjz2vr9q.dlg@40tude.net> <46d972e8$0$30384$9b4e6d93@newsspool4.arcor-online.net> <1alyfwaig93sk$.99oy269uon$.dlg@40tude.net> <46d9c138$0$4531$9b4e6d93@newsspool3.arcor-online.net> <1rt8kdcrj6tf.1qgvycc6vh357$.dlg@40tude.net> <46db2bf4$0$7699$9b4e6d93@newsspool2.arcor-online.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1188816674.2630.25.camel@kartoffel.vocalweb.de> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Date: Mon, 03 Sep 2007 12:51:14 +0200 Organization: Arcor NNTP-Posting-Date: 03 Sep 2007 12:50:46 CEST NNTP-Posting-Host: fc1e67c1.newsspool1.arcor-online.net X-Trace: DXC=FYb3T@E`B On Mon, 2007-09-03 at 09:53 +0200, Dmitry A. Kazakov wrote: > On Sun, 02 Sep 2007 23:37:33 +0200, Georg Bauhaus wrote: > > > Suppose every package is reusable. > > That's the goal. Why? > > Then most of us will have > > lost their jobs as programmers because every problem domain > > object can be mapped to one of the available reusable packages. > > False implication. Reusing of every package does not imply that you have a > package for every other thing. To me, not forcing the reuse idea on every package is a much better alternative than having to declare unrelated things in the same declarative part with packages forbidden. Or, alternatively, being forced to construe some artificial types for reasons of formal preference only. The "abstract state machines" kind of package (as opposed to those packages framing an "abstract data type") do work well in Ada program without a type parameter; it doesn't carry any additional information of spectacular use. The idea: When a few very specific things are alive only while a subprogram is executing, then a local package for them is fine (I think you agreed with this singleton style use). They have an interface, the have an implementation, with or without a type declaration. So why add one? Why the heck do I have to defend nesting of packages in the first place? Is it because some popular languages and UML do not usually nest object abstractions inside procedural artifacts? Is it because you do not usually have nesting in C? Is it because GCC (hence GNAT to some extent) was not built knowing there would be locally defined things in languages such as Ada?