[comp.lang.pascal] Interrupts and OOP

isaacso@copper.ucs.indiana.edu (Eric J. Isaacson) (02/12/91)

I am in the process of trying to convert an application involving MIDI
to OOP.  I would like to have a "MIDI" object that would capture all
the needed functionality (just playing and recording part, plus some
methods to create the MIDI data streams).

My question is: can I declare an object method with the Interrupt
directive?  If so, is there any way to guarantee when the interrupt is
triggered that it will refer to the correct object's instance
variables (even if there is only one instance of the object and it is
declared in the var section rather than dynamically, which I know
won't work).

Please respond by email.  I will summarize or forward responses on
request.  Thanks in advance for any advice.


--
Eric J. Isaacson (the other)      Internet: isaacso@ucs.indiana.edu
School of Music--Indiana Univ.   NeXT Mail: isaacso@bartok.music.indiana.edu
Bloomington, IN  47405          -- I am NOT the author of A86 and other    --
(812) 855-7832(o)/333-1827(h)   -- outstanding software...I wish I were... --