TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tom Moran <[log in to unmask]>
Reply To:
Tom Moran <[log in to unmask]>
Date:
Thu, 11 Nov 2004 10:42:45 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (12 lines)
In a message dated 11/10/2004 11:03:41 PM Pacific Standard Time,
[log in to unmask] writes:
I am writing a subroutine that has one parameter, another subroutine that I
want the second subroutine to execute.  Does anyone have any ideas how to
do this?

1) Use an access-to-subprogram parameter.
2) Use a generic with subprogram parameter.
3) Use an abstract tagged type with a subprogram,
     creating a non-abstract type with the particular
     subprogram you want to pass.

ATOM RSS1 RSS2