Ah...right. I seem to have mixed two different problems in the same
example.
The first problem is that parse source seems to return 'COMMAND' no matter
if it is invoked in the mainline, a subroutine, or a function.
> $testParseSource
> Mainline: Invoked via COMMAND.
> Mainline: /home/leslie/bin/rexx
> Subprogram: /home/leslie/bin/rexx
> Subprogram: Invoked via COMMAND.
> Function: /home/leslie/bin/rexx
> Function: Invoked via COMMAND.
The second problem is that routines do not seem to work with the expose
instruction. (Seems to me that must have been working at some point.)
Leslie
On Tuesday 19 August 2014 04:10:34 Ruurd Idenburg wrote:
> Leslie,
>
> Doesn't seem to me that the parse source is broken, since the end
> result of the following code is the same error message:
>
> -------------------------------------
> a = q
> call r
> say result
> exit
>
> ::routine r
>
> expose a
> return a
> -------------------------------------
>
>
> Ruurd
>
> On 18-8-2014 23:00, J. Leslie Turriff wrote:
> > I'm running ooRexx on OpenSuSE 13.1, x86_64. The version is
> >
> > g /home/leslie/bin/rexx/testParseSource line 57:
> > Translation error
> >
> >> REX0512E: Error 99.907: EXPOSE must be the first instruction executed
> >> after
> >
> > a method invocation
> >
> > So, either I'm doing something wrong, or parse source is broken. Help!
> >
> > Leslie
--
A Caution to Everybody
Consider the Auk;
Becoming extinct because he forgot how to fly, and could only walk.
Consider man, who may well become extinct
Because he forgot how to walk and learned how to fly before he thinked.
-- Ogden Nash
------------------------------------------------------------------------------
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users