🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13296

help with Arexx library design

#13296
From: Francois Rouaix
Date: Wed, 03 Jan 1990 17:41
36 lines
1777 bytes
Hi there,
Once again I will need some help with the design of an AREXX library.
My question is simple:
 is it allowed  to use the RVI functions (GetRexxVar and SetRexxVar)
from inside an arexx external library ?

I need that to implement something like
success = GetSomeResource('handle',parameter,...)
result = UseTheResource('handle')
call ReleaseResource('handle')
where these functions are in the library, but need a pointer surviving
different calls (somewhat like the Open/Close/Read functions of AREXX).
This pointer would be stored in the variable 'handle' here.
(I don't want the solution where  one would write
	handle = GetSomeResource(parameter,...)
	etc...
 and also need passing a stem variable name elsewhere
)
The guru visits AREXX when the call to the library returns (so sez the
wedge). Looks like the environment get trashed.
The RVI documentation mentions only command hosts/functions hosts, 
but not libraries... 
Auxiliary questions: would a LockRexxBase() help ?

Ever tried debugging a library interfacing a library to another
library ?
Thanx for your help.
--Francois


-- 
*- Francois Rouaix                 //       We are all prisoners here,       *
*- rouaix@inria.inria.fr         \X/           of our own device             *
*- SYSOP of Sgt. Flam's Lonely Amigas Club. (33) (1) 39-55-84-59 (Videotex)  *
Disclaimer: Opinions expressed are my own, not those of my employer.
Technical Details
Message-ID: <1451@inria.inria.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!inria!rouaix

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!inria!rouaix
From: rouaix@inria.inria.fr (Francois Rouaix)
Newsgroups: comp.sys.amiga.tech
Subject: help with Arexx library design
Keywords: RVI in library
Message-ID: <1451@inria.inria.fr>
Date: 3 Jan 90 17:41:10 GMT
Organization: The Software Winery
Lines: 35