comp.lang.ada
 help / color / mirror / Atom feed
From: GBODSO1@NUSVM.BITNET (HC Eng)
Subject: MOTIF BINDING
Date: 10 Sep 90 15:32:00 GMT	[thread overview]
Message-ID: <9009060654.AA09349@ajpo.sei.cmu.edu> (raw)

Please refer to the item in Vol 90 Issue 168 about JPL coming up with
a Motif binding.  (Please note that I am very new to Ada.)  In the OSF Motif
toolkit, widgets are treated as objects and callbacks are passed as subprogram
pointers.  I am dying to know how this could be implemented in Ada since Ada
does not have a subprogram type.
Presently I am coding my own "Motif" toolkit in Ada for the IBM RS/6000 and
the stumbling block is the lack of the subprogram type (see Ada LI65).  I am
solving the problem very unsatisfactorily by making the interface layer call
a procedure CALLBACK(W) where W is the widget being activated.  Inside CALLBACK
is a giant IF and ELSIF block to cater for every widget declared in my program.
It is unsatisfactory because everytime I add a new widget, I must amend this
block.
Therefore, if there is something that I don't know that would make the Motif
binding possible, I would be very happy to hear it immediately.

             reply	other threads:[~1990-09-10 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-09-10 15:32 HC Eng [this message]
1990-09-17 11:59 ` MOTIF BINDING Eric Beser
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox