[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] arbitrary Toolbox calls



In article <v04020a0bb29f21ff8f38@ip42-30.cfcl.com>, Rich Morin <rdm@cfcl.com> writes:
> From: Geoffrey C Kinnel <kinnelg@bms.com>
>> ...
>> Unless there's a way to get MacPerl to call an arbitrary Toolbox call,
>> you'd have to use a C routine via XS, I imagine.

> This is a really provocative question.  If we could make arbitrary Toolbox
> calls, even at a high performance penalty, it might open up a great deal
> of experimentation.

> So, MacPerlies, is there a way to do this?  For instance, is it possible
> to create appropriate data structures and then force a call to Mac OS?

Yes, you could do interfaces to GetTrapAddress and CallUniversalProc which
would allow you to do this. A neat project, but not one I have time for right
now.

Matthias

-- 
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "I'm set free to find a new illusion" -- Velvet Underground

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch