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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,953e1a6689d791f6 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,953e1a6689d791f6 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Eiffel and Java + Ada dispatching Date: 1996/11/12 Message-ID: #1/1 X-Deja-AN: 195998540 references: organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.eiffel,comp.lang.ada Date: 1996-11-12T00:00:00+00:00 List-Id: In article , Don Harrison wrote: >Ada Eiffel >--- ------ >generic class X [T -> Some_Type] ... > type Some_Type is tagged limited private; >package X ... I meant "type Some_Type is new Other_Type with private". >Yes, This is true of Eiffel. You get the benefit of all the contracting >defined in the type (and transitively, it's subtypes). But, you don't get >this in Ada as it does not support Programming by Contract in the more >general (and usual) sense. I'm not sure what you mean by that. That Ada doesn't have assertions? True. But there's all kinds of other contractual stuff in Ada -- when you export a type from a package, you define a contract; that is, what operations there are, and what their parameter names and types are, and so forth. - Bob