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,FREEMAIL_FROM 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-12 18:44:20 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!attbi_feed3!attbi.com!attbi_s54.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: Proposed change to BC iterator parameters X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <72vCb.100044$_M.526172@attbi_s54> NNTP-Posting-Host: 12.211.58.135 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s54 1071283459 12.211.58.135 (Sat, 13 Dec 2003 02:44:19 GMT) NNTP-Posting-Date: Sat, 13 Dec 2003 02:44:19 GMT Organization: Comcast Online Date: Sat, 13 Dec 2003 02:44:19 GMT Xref: archiver1.google.com comp.lang.ada:3430 Date: 2003-12-13T02:44:19+00:00 List-Id: "Simon Wright" wrote in message news:x7vwu921u54.fsf@smaug.pushface.org... > "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!) > That is why I felt compelled to explain my reasoning in this thread. Steve (The Duck) (The Same Steve) > -- > Simon Wright 100% Ada, no bugs.