Xref: news2.mv.net comp.os.msdos.djgpp:4883 From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Grabbing interrupts in C++ Date: Mon, 10 Jun 1996 15:00:27 +0100 Organization: The University of York, UK Lines: 18 Message-ID: NNTP-Posting-Host: tower.york.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <01BB5489.0EBADA80@psp3> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Fri, 7 Jun 1996, Steve Higgins wrote: > I've now hit the classic problem of telling the interrupt function > where the function's class is. I really don't see what the big deal is with wanting to write interrupt handlers in C++. Why can't they just be a global C function? An interrupt is a global resource, and there are a very small number of them available, so why try to implement them as class member functions? I think you are just making life difficult for yourself :-) /* * Shawn Hargreaves. Why is 'phonetic' spelt with a ph? * Check out Allegro and FED on http://www.york.ac.uk/~slh100/ */