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: 103376,799e6e37c90ca633 X-Google-Attributes: gid103376,public From: dewarr@my-dejanews.com Subject: Re: Future Ada language revisions? Date: 1998/10/05 Message-ID: <6vbh5h$4ro$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 398049977 References: <6um7on$db5$1@nnrp1.dejanews.com> <6umk64$pt0$1@nnrp1.dejanews.com> <3618DAE7.326A@oen.siemens.de> X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Oct 05 22:28:01 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-10-05T00:00:00+00:00 List-Id: In article <3618DAE7.326A@oen.siemens.de>, Alfred.Hilscher@oen.siemens.de wrote: > I have an other question to the Ada95 design: Why does Ada not support > simple PROCEDURE-Types (like C or Modula). When writing GUI > applications, one needs always to pass callback routines. They are in > fact passed as procedure variables. In Ada one have to pass adresses > instead. While Ada has task type, I did not found any procedure type. Is > there really none (and if, why not) or am I blind ? This is a bit peculiar, perhaps you have been looking at an obsolete language (Ada 83). In Ada 95, there is an access procedure type which does exactly what you want. Very similar to, but safer than, the use of procedure pointers in C. This feature was primarily motivated by the need to support callbacks and has been widely and successfully used for this purpose. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own