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,6689542a60dbcc55 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news2.arglkargh.de!news.n-ix.net!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Discriminated records are not the most efficient, but ... Date: Sun, 22 Aug 2010 22:47:24 +0200 Message-ID: <874oemcr37.fsf@mid.deneb.enyo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: idssi.enyo.de 1282510044 572 172.17.135.6 (22 Aug 2010 20:47:24 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:DutuxhzYMkrih/9Z0WZbvLBFoNQ= Xref: g2news1.google.com comp.lang.ada:13636 Date: 2010-08-22T22:47:24+02:00 List-Id: * Yannick Duchêne (Hibou57): > But they was wrong in one point, as they also ended with: > > “However, ML admits structures (not just types) as parameters to > functors.” > > Probably they never heard about “package formal parameter”. I suppose > they knew about Ada 83 and this was not there with this one (but was > this really the case ?) But doesn't that mean that the package you want to pass has to be an instance of a generic package? I haven't seen that programming style much. (Ada hasn't got another way to express module types, so this shouldn't come as a surprise.)