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 <object.r...@gmail.com
> <mailto:object.r...@gmail.com>> wrote:
>
> 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 it is currently uninitialized. To me it feels like this gives a new
> meaning to the behavior
> of the default value because technically, the argument was not omitted.
> On the other hand, I
> can see some uses for this. I can go either way.
>
If I understand the question correctly it is about handling the case where an
argument is left out
that is supposed to be aliased in cases like, e.g.:
1. USE ARG >someArg
2. USE ARG >someArg=123
If so I would assume/expect in case 1. that "someArg" has not assigned a value.
It would be as if
the ">" operator only gets applied to an argument if an argument was supplied.
In case 2 I would assume/expect that its value would be "123".
In both cases aliasing to another variable would not take place, if the
argument was left out.
---rony
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel