On 19.02.2012 15:16, Rick McGuire wrote:
> On Sun, Feb 19, 2012 at 8:48 AM, Rony G. Flatscher
> <[email protected]> wrote:
>> After having implemented and successfully tested the RXSIO, RXNOVAL and
>> RXVALUE exits (i.e. exit handlers in Java process the exits), I turned to
>> RXINI and RXTER, which has been very interesting as it allows one to get
>> some "feeling" about how much is actually going on in the ooRexx
>> interpreter. :)
>>
>> A few questions from the observations:
>>
>> I noticed that in RXINI one can set context variables, but getting them in
>> the same RXINI routine returns the variables as NULL, not reflecting that
>> immediately before a SetContextVariable() was carried out (successfully as
>> it turns out later in the Rexx code)?
> Provide a test case to recreate this, and I'll take a look at it.
*Great*, will do!

(Will take a little while as this would need a stable BSF4ooRexx version in 
order to not get you
sidetracked on bugs in my code there, as I have changed quite a few details in 
the inner working to
accommodate for handling the exits and commands from Java in a rather short 
execution path to cater
for the need of speedy handling them. Also, I would like to set it up such, 
that it is a matter of
simply invoking a batch script to get this running, such that you have no need 
to set it up locally
and hence not wasting time. Would supply a 32-bit Windows release and debug 
version of BSF4ooRexx to
ease analysis.)

>
>> Just wanted to ask (to make sure) that this is by design and not a glitch
>> (for which I would otherwise file a bug report).
>>
>> RXINI and RXTER run not only for the executed Rexx program, but also for
>> runtime invocations of routines?
>>
>> If so, can one somehow programmatically find out for which routine,
>> procedure they run?
> GetCallerContext() will return thr context object.  From that, you can
> access the package object and find out everythimg you need.
*Super* (totally overlooked that precious API)!

>> This might allow one to set up timings, by placing a DateTime object in
>> RXINI and calculating the spent time in RXTER, short of other profiling.
>>
>> Would it make sense at all to allow for RXINI/RXTER exits for method code,
>> which could then also benefit from the ability to become able to set context
>> variable at RXINI and/or fetch context variables at RXTER?
>>
> absolutely not.  Those exits have a very restricted usage
> intentionally.  Your program execution would grind to a halt if every
> method invocation resulted in an exit call.
I see.

Again, thank you very much for your insights and hints !

---rony
 




------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to