From: Dmitry A. Kazakov <mailbox@dmitry-kazakov.de>
Subject: Re: Procedural Types
Date: Wed, 15 Oct 2003 09:43:13 +0200
Date: 2003-10-15T09:43:13+02:00 [thread overview]
Message-ID: <fptpovc45m8ensslf8q6evh28aj78380ce@4ax.com> (raw)
In-Reply-To: bc2da879.0310142259.737f4383@posting.google.com
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
next prev parent reply other threads:[~2003-10-15 7:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 6:59 Procedural Types Umut DURAK
2003-10-15 7:43 ` Dmitry A. Kazakov [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-15 7:02 christoph.grein
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox