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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,99dc3277a0d9f273 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-15 00:42:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Procedural Types Date: Wed, 15 Oct 2003 09:43:13 +0200 Message-ID: References: NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1066203763 21669615 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:885 Date: 2003-10-15T09:43:13+02:00 List-Id: On 14 Oct 2003 23:59:00 -0700, durakumut@hotmail.com (Umut DURAK) wrote: >Is it possible to define procedural types in ADA95 ? CLearly is it >possible to define procedure type and implement various procedures >with the same type ? Unfortunately, no. There are only: 1. pointers to subroutines 2. formal subroutine parameters of generic packages Thus if you want to pass a subroutine as a parameter you almost always have to break accessibility checks per brute force, or alternatively you have to make things generic. Keep also in mind that to pass a dispatching subroutine is not a trivial task. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de