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,1ce805592e46d231 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-05 10:41:05 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: (elementary question) Test on type ? Date: Wed, 5 Sep 2001 20:33:36 +0200 Organization: The Hebrew University of Jerusalem Message-ID: <9n5npp$vsd$1@news.huji.ac.il> References: <9n24g4$17q$1@snipp.uninett.no> <9n279a$1ua$1@snipp.uninett.no> <3B94B4B4.CE1955D6@nbi.dk> <9n2ctk$36v$1@snipp.uninett.no> <3b95eca7.5408987@news.demon.co.uk> NNTP-Posting-Host: di2-62.dialin.huji.ac.il X-Trace: news.huji.ac.il 999711354 32653 132.64.12.62 (5 Sep 2001 17:35:54 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Wed, 5 Sep 2001 17:35:54 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: archiver1.google.com comp.lang.ada:12761 Date: 2001-09-05T20:33:36+02:00 List-Id: Ted Dennison wrote in message news:fwql7.4754$4z.14897@www.newsranger.com... > Hack 2: Make the user supply the non-common code themselves as a procedure > parameter. (works well if the non-common stuff can be put together, and it > doesn't rely on package-internal stuff, and you can trust the clients to get > this code right. Not so good if its stuff the clients shouldn't have to worry > about doing themselves. > You can refine this using a layerd design, so that the client is shielded from the internal details, by adding a top layer that uses the generic, and defines the required subprogram parameters . In some cases child units may come in handy (if you must rely on internal deails). Ehud Lamm