From: "benibilme@gmail.com" <benibilme@gmail.com>
Subject: Newbie question: Implementing a callback mechanism with Ada 83
Date: 10 Feb 2007 11:38:19 -0800
Date: 2007-02-10T11:38:19-08:00 [thread overview]
Message-ID: <1171136299.920852.179650@v33g2000cwv.googlegroups.com> (raw)
Hello,
I need to develop an Ada application which must conform to Ada83. It
will be part of legacy system. I am very much new in Ada. The
application I have to develop is very much event driven. As an old
time C programmer I wanted to implement an event handling module which
you can subscribe callback functions and trigger the events when
necessary and unfortunately I have realized that Ada 83 does not
support pointer to subprograms. I have read about generics with which
defining subprograms as parameters of subprograms seems possible. On
the other hand, I could not figure out how to do it.
I simply want to store function pointers to some data structure for
some certain events and call them with dynamic data when the event is
triggered.
How can I do it in Ada 83 without the support of pointers to
subprograms. It is clear how to do this Ada95 as there is a direct
support for pointer to subprograms.
Any help is much appreciated.
next reply other threads:[~2007-02-10 19:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-10 19:38 benibilme [this message]
2007-02-10 20:40 ` Newbie question: Implementing a callback mechanism with Ada 83 Dmitry A. Kazakov
2007-02-11 2:46 ` Jeffrey R. Carter
2007-02-11 21:40 ` benibilme
2007-02-12 5:03 ` Jeffrey R. Carter
2007-02-12 19:32 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox