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 15:13:45 +0200 Organization: Ada @ Home Message-ID: References: <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:15557 Date: 2013-05-14T15:13:45+02:00 List-Id: Le Tue, 14 May 2013 14:16:52 +0200, Dmitry A. Kazakov = a =C3=A9crit: > On Tue, 14 May 2013 13:34:09 +0200, Yannick Duch=C3=AAne (Hibou57) wro= te: >> An operation has a type,, while a type may be defined without operati= ons >> (not a lot useful, however still possible). > > procedure Foo; This is not random data, this has type. The type is implicit in most cas= e = and becomes more explicit with access to sub=E2=80=91program (the same w= ith many = other languages), and as well=E2=80=91known, there is nothing in Ada loo= king like = an access to an untyped entity, which implies the sub=E2=80=91program ha= s an = implicit type. You just can't dynamically create or manipulate value of = = that type in Ada (unlike with say, SML or other LISP variant), which mak= es = that type special, and prevented it to be given a name, a syntax or ever= = be explicitly referred to in Ada (not the same with all languages). >> If a program is mainly a structure, then it is mainly made of typed = >> values >> (and the program as a whole, is a complex value). > > No idea, what does this mean. > > Value is not a programming language term, it belongs to the applicatio= n > domain. Then think about meta=E2=80=91programming or =E2=80=9Cprogramming as a h= uman activity=E2=80=9D. = That said, obviously, the concept of value I referred to, was either at = a = level higher than values manipulated by the program, or else, constants = = values referred to (and interpreted) by the program. -- = =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