Re: [Oorexx-devel] USE ARG default values with references.

2018-04-25 Thread Rony G. Flatscher
Just to make sure that no other misunderstanding occurs: the default value in USE ARG has been used/applied by ooRexx only, if an argument value was left out when invoking the routine. In the current implementation of a variable reference argument must be always supplied or otherwise a runtime

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-18 Thread Rony G. Flatscher
On 17.04.2018 18:53, Rick McGuire wrote: > No, you are not understanding the question. If you use  > > USE ARG >someVar > > Then the argument is always required. If that is the case then I would be surprised that although an argument was supplied (unexpectedly) a default value gets applied instead

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-17 Thread Rick McGuire
No, you are not understanding the question. If you use USE ARG >someVar Then the argument is always required. An error will be raised if one is not provided and the reference is not to a matching type. Right now, if you use ">", the default value expression is not allowed. However, I was thinking

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-17 Thread Rony G. Flatscher
On 17.04.2018 16:18, Rick McGuire wrote: > Now that the spelling of the character has been sorted out, does anybody have > an opinion on the > actual question of this thread? > > Rick > > On Sun, Apr 15, 2018 at 7:45 AM, Rick McGuire > wrote: > > I have one addi

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-17 Thread Rick McGuire
Now that the spelling of the character has been sorted out, does anybody have an opinion on the actual question of this thread? Rick On Sun, Apr 15, 2018 at 7:45 AM, Rick McGuire wrote: > I have one additional open issue with my variable references prototype, > and that's whether to support a d

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-16 Thread Mike Cowlishaw
carat has some compatibility problems with other Rexx interpreters that interpreted the carat as a logical not. I'd prefer to stay away from that. In any event, I just committed the changes to use '>' rather than '&'. :-))) Many thanks. Mike -

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-16 Thread Rony G. Flatscher
On 16.04.2018 16:21, Rick McGuire wrote: > > > On Mon, Apr 16, 2018 at 9:54 AM, Rony G. Flatscher > wrote: > > On 16.04.2018 14:08, Rick McGuire wrote: >> >> On Mon, Apr 16, 2018 at 8:04 AM, Mike Cowlishaw > > wrote: >> >>

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-16 Thread Rick McGuire
On Mon, Apr 16, 2018 at 9:54 AM, Rony G. Flatscher wrote: > On 16.04.2018 14:08, Rick McGuire wrote: > > > On Mon, Apr 16, 2018 at 8:04 AM, Mike Cowlishaw > wrote: > >> >> >> One other point I should probably make related to this is that the >> referencing operator (currently spelled "&") ...

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-16 Thread Rony G. Flatscher
On 16.04.2018 14:08, Rick McGuire wrote: > > On Mon, Apr 16, 2018 at 8:04 AM, Mike Cowlishaw > > wrote: > >   > > One other point I should probably make related to this is that the > referencing operator > (currently spelled "&")   ... >  

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-16 Thread Rick McGuire
On Mon, Apr 16, 2018 at 8:53 AM, Erich Steinböck wrote: > One other point I should probably make related to this is that the >> referencing operator (currently spelled "&") >> > > Can this maybe done with existing ooRexx syntax? Like > `call routine alpha, .Reference~new(beta), gamma` and a simp

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-16 Thread Erich Steinböck
> > One other point I should probably make related to this is that the > referencing operator (currently spelled "&") > Can this maybe done with existing ooRexx syntax? Like `call routine alpha, .Reference~new(beta), gamma` and a simple `use a, b, c` Alternatives to `.Reference~new()` might be `

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-16 Thread Rick McGuire
On Mon, Apr 16, 2018 at 8:04 AM, Mike Cowlishaw wrote: > > > > One other point I should probably make related to this is that the > referencing operator (currently spelled "&") ... > > > I trust that spelling is still considered an open issue. :-) > > I'm warming to using '>' on both sides ..

Re: [Oorexx-devel] USE ARG default values with references.

2018-04-16 Thread Mike Cowlishaw
One other point I should probably make related to this is that the referencing operator (currently spelled "&") ... I trust that spelling is still considered an open issue. :-) I'm warming to using '>' on both sides .. at least it implies some sort of movement/look elsewhere. My secon

[Oorexx-devel] USE ARG default values with references.

2018-04-15 Thread Rick McGuire
I have one additional open issue with my variable references prototype, and that's whether to support a default value or not on USE ARG if aliasing is requested. Right now I don't support it at all. There is a case for supporting a default value that would be assigned to the aliased variable if i

[Oorexx-devel] Use case: calling into Rexx while the Rexx interpreter shuts down (crashes Rexx)

2012-06-07 Thread Rony G. Flatscher
There is one use-case for which I am not able to find a work-around: * Rexx loads BSF4ooRexx and interfaces with Java. * For Java event handlers ooRexx objects are passed to Java, such that Java calls back to Rexx (Rexx messages will be sent to the Rexx object, whenever a Java method gets

Re: [Oorexx-devel] "USE"

2010-02-10 Thread Rick McGuire
looks like a bug to me. Rick On Wed, Feb 10, 2010 at 11:25 AM, Rony G. Flatscher wrote: > The following program demonstrates that USE STRICT ARG in the routine aha1() > is assigning the two arguments correctly to the two local variables ONE and > TWO, although these two variables are not delimit

[Oorexx-devel] "USE"

2010-02-10 Thread Rony G. Flatscher
The following program demonstrates that USE STRICT ARG in the routine aha1() is assigning the two arguments correctly to the two local variables ONE and TWO, although these two variables are not delimited with a comma: a="hallo" b=.object~new call aha1 a, b call aha2 a, b ::r

Re: [Oorexx-devel] use arg with defaults question

2008-10-04 Thread Mark Miesfeld
On Thu, Sep 25, 2008 at 9:51 AM, Rick McGuire <[EMAIL PROTECTED]> wrote: > The default expression is what's known as a "constant expression". > The expression must be either a single string or constant symbol > (e.g., a number), or an expression contained in parentheses. This makes sense, and aft

Re: [Oorexx-devel] use arg with defaults question

2008-09-25 Thread Rick McGuire
The default expression is what's known as a "constant expression". The expression must be either a single string or constant symbol (e.g., a number), or an expression contained in parentheses. This is a construct used in other places (for example, the forward and raise instructions). This is an e

[Oorexx-devel] use arg with defaults question

2008-09-25 Thread Mark Miesfeld
I see that the following code generates an error: ::method someMethod use strict arg num = 32, otherNum = -1 ... Incorrect expression detected at "-" It is easy enough to fix, otherNum = (-1) I was just surprised. Intuitively, it seems it should work without the parens. Is this intentiona