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,fa18fb47ddd229a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-11 21:31:51 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Proposed change to BC iterator parameters Date: 12 Dec 2003 05:29:11 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1071207111 6168 62.49.19.209 (12 Dec 2003 05:31:51 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 12 Dec 2003 05:31:51 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:3406 Date: 2003-12-12T05:29:11+00:00 List-Id: "Steve" writes: > "Robert A Duff" wrote in message > news:wccekvc2rol.fsf@shell01.TheWorld.com... > [snip] > > > > I don't understand the point of Param_Type and Param above. If you want > > to pass extra information to Apply, nest the instantiation in a place > > where it can see that data. > > The reason for Param_Type and Param is to avoid using data outside of the > scope of the Apply routine except for the arguments to the Apply machine. > It comes from that old school of thought: > Avoid global data > All inputs and outputs of a procedure should appear in their parameter > lists > > Following these simple guidelines usually makes code a lot easier to follow. I see these extensions were added to the BCs on 1 Dec 1999, in response to a request from a user (also called Steve!) -- Simon Wright 100% Ada, no bugs.