Dear Larry, again I fear we are looking at things a bit differently. > UNIVERSALPROC is a nice find indeed. Oh, it has been around for quite a while... > When I last looked at manuals PROC, ENTERPROC, and > CALL did not lead me on to UNIVERSALPROC. So I was > not about to find UNIVERSALPROC myself. I think it's there since FB^3 Release 0. > As proof that these are underused, I note that > they offer us *static variables* of the sort I was > asking for at some length not to long ago. I doubt that. > Nobody twigged. > Have you checked whether the variables are Pascal > VAR's i.e. the *reference* variables of C++? The manual that you are unable to read says: "In the current version of FB^3, UniversalFn can only call 'Pascal stack-based' routines; ..." and actually it tells us much more about this routine. > The bad news is that UNIVERSALPROC & Co. are about as > slow as FN's -- probably because they do 'universal' > or 'worst case' register manipulation. As far as I remember, the initial question of the original thread was: "Computed Goto", i.e. whether it is possible with FB^3 to realize variable jump labels. I can't remember any requirements of "Hayden G. Coon" or "Bryan Bremner" that make the use of FNs and the like impossible because they are too slow. Sorry if I missed something. The real bad news for me is that "UniversalFn" and "UniversalProc" appear not to function with Carbon. Perhaps another miraculous offset, such as "_FBprocToProcPtrOffset", is required. > Another (old) question:- Has anyone been able to set > up a UNIVERSALPROC or any such device that is able to > exploit binary PPC code **coming from C** and stored > in a resource? You may call DCODs from FB^3 code and I do it successfully since long. However, as we all know, we cannot compile DCODs or Code fragments with FB^3 and I'm not sure what kind of code we are able to call. I'm sure we can call all sorts of shared libraries. Perhaps you can find out more, especially about the Carbon issue... Best, -- Herbie ------------------------ <http://www.gluender.de>