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,88093378be1184d4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-10 12:01:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: List Container Straw Man Date: Sat, 10 Nov 2001 21:50:44 +0200 Organization: The Hebrew University of Jerusalem Message-ID: <9sk0mc$39j$1@news.huji.ac.il> References: <9s941p$11mrei$4@ID-25716.news.dfncis.de> <9s99tt$pdb$1@nh.pace.co.uk> <9s9s8p$11vt7l$1@ID-25716.news.dfncis.de> <9sc5l8$9b7$1@nh.pace.co.uk> <9scke8$12jb14$3@ID-25716.news.dfncis.de> <9sdnva$dpk$1@news.huji.ac.il> <9seup4$12h0ar$3@ID-25716.news.dfncis.de> <9sib28$13aeg3$6@ID-25716.news.dfncis.de> NNTP-Posting-Host: di2-43.dialin.huji.ac.il X-Trace: news.huji.ac.il 1005422093 3379 132.64.12.43 (10 Nov 2001 19:54:53 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Sat, 10 Nov 2001 19:54:53 +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:16241 Date: 2001-11-10T21:50:44+02:00 List-Id: Nick Roberts wrote in message news:9sib28$13aeg3$6@ID-25716.news.dfncis.de... > Well, I've shown a few examples of using my design. It basically requires > two instantiations (one generic parameter each). Students could learn this > pattern by rote until they got to understanding it (just like Sequential_IO > and Direct_IO). I can't believe that it's too complicated for anyone. > Essentialy I agree. I can live with giving an example, and saying "You'll understand when you grow up." My problem is on a more semantic level. To understand your approach students must understand about inheritance (or so it seems to me). It is not like instanating Integer_IO, which results in having "normal" procedures. (And even this was deemed enough trouble, so Integer_Text_IO was defined). Now perhaps my approach is all wrong - and people should start with inheritance, only to graduate to old-fashioned procedural thinking. I really am not sure. But as things are right now, many Ada programmers come from Ada-83, not from Smalltalk... Many students follow a similar path from Pascal/C to Ada/Java. Ehud