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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms Date: Tue, 14 May 2013 13:34:09 +0200 Organization: Ada @ Home Message-ID: References: <19lrzzbgm77v6.1dzpgqckptaj6.dlg@40tude.net> <1bfhq7jo34xpi.p8n2vq6yjsea.dlg@40tude.net> <12gn9wvv1gwfk.10ikfju4rzmnj.dlg@40tude.net> <1oy5rmprgawqs.1jz36okze0xju$.dlg@40tude.net> <1q2ql1e4rcgko.diszzq1mhaq8$.dlg@40tude.net> <518dedd4$0$6581$9b4e6d93@newsspool3.arcor-online.net> <1um7tijeo609b$.1gtdijp0acfmn$.dlg@40tude.net> NNTP-Posting-Host: ll7JxPeHtfBeoFl5nDW1Dg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:15554 Date: 2013-05-14T13:34:09+02:00 List-Id: Le Tue, 14 May 2013 09:44:00 +0200, Dmitry A. Kazakov = a =C3=A9crit: > On Mon, 13 May 2013 21:29:15 -0500, Randy Brukardt wrote: > >> The big disconnect is that you (and lots of other misguided people) = >> think >> that types have something to do with operations. Types are more = >> fundamental >> than operations; they get *used* in operations, rather than the = >> operations >> being part of the type. > > Neither type nor operation nor value exist before other. You cannot > separate them. It is like magnetic field and current. An operation has a type, while a type may be defined without operations = = (not a lot useful, however still possible). The type gets realised even = = before runtime (except for some subtypes), most values too, while an = operation, is nothing but a value (with an implicit type) before runtime= . = Values and types, seems to me the most fundamental concept. At least, th= is = looks unavoidable for analysis, which looks at everything, as if it was = = static. If a program is mainly a structure, then it is mainly made of typed valu= es = (and the program as a whole, is a complex value). Functional programming= , = where even a function is a value, won't say the opposite. This fact is also what makes the differences between data (hopefully typ= ed = data) and program, narrow, and a matter of interpretation (not that much= = apparent with general purpose languages such as Ada; more apparent with = = domain=E2=80=91specific=E2=80=91languages). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity