Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-09-03 Thread P.O. Jonsson
Done. Thanks for sorting it out.

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se




> Am 03.09.2018 um 16:45 schrieb Rony G. Flatscher :
> 
> Dear P.O.:
> 
> On 03.09.2018 15:48, P.O. Jonsson wrote:
>> One remark: I noticed that "this is not an error“ came over as "his is not 
>> an error“ (missing the
>> initial „t“) in usefilter1-usefilter3, can you have a 2nd look?
> interesting, I think you found a bug in the Unix implementations!
> 
> The samples work as expected under Windows. On MacOSX and Linux however the 
> "t" is missing, which
> looks like a bug in the Unix implementation.
> 
> Could you please file a bug with ooRexx and just supply the programs 
> (*filter1.rex, *filter2.rex,
> *filter3.rex)?
> 
> TIA
> 
> ---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

--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-09-03 Thread Rony G. Flatscher
Dear P.O.:

On 03.09.2018 15:48, P.O. Jonsson wrote:
> One remark: I noticed that "this is not an error“ came over as "his is not an 
> error“ (missing the
> initial „t“) in usefilter1-usefilter3, can you have a 2nd look?
interesting, I think you found a bug in the Unix implementations!

The samples work as expected under Windows. On MacOSX and Linux however the "t" 
is missing, which
looks like a bug in the Unix implementation.

Could you please file a bug with ooRexx and just supply the programs 
(*filter1.rex, *filter2.rex,
*filter3.rex)?

TIA

---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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-09-03 Thread P.O. Jonsson
Dear Rony,Also the VariableReference example works and give the same output as in your output, only difference is the hashmain: a=123 (before)
main: a~identityHash=-4554335665 (before)
--

main: a~identityHash=-4554335665 (before test)

test:  test=123 test~class=The String class (arrived)
test:  test~identityHash=-4554335665
test:  adding 17 to variable's value ...
test:  test=140
test:  test~identityHash=-4554408209

main: a=140 (after test)
main: a~identityHash=-4554408209 (after test)
--

main: a~identityHash=-4554408209 (before test2)

test2: test=140 test~class=The VariableReference class (arrived)
test2: test~value~identityHash=-4554408209
test2: adding 10 to variable's value ...
test2: test=150 test~value=150 | aliased variable: test~name=A
test2: test~value~identityHash=-4554437025

main: a=150 (after test2)
main: a~identityHash=-4554437025 (after test2)
--

main: a=150 (before test3)
main: a~identityHash=-4554437025 (before test3)

test3: test=150 test~class=The VariableReference class (arrived)
test3: replacing value variable A points to ...
test3: test=a Set test~value=a Set | aliased variable: test~name=A
test3: test~value~identityHash=-4554465553

main: a=a Set
main: a~identityHash=-4554465553 (after test3)
=
Hälsningar/Regards/Grüsse,P.O. Jonssonoor...@jonases.se

Am 03.09.2018 um 12:49 schrieb Rony G. Flatscher :
  

  
  Dear P.O.,just tested it on my Mac and the test runs without problems and
  as expected. The ooRexx version used was compiled on 20180726 with
  revision 11467.Here the dropbox links:

  64-bit ooRexx rev 11467 for Windows and Linux:

  
This directory contains the directories

  : includes various test
scripts that excercise "address with" including "test1.rex"
  : includes variuos test
scripts that excercie the new variable reference ability of
ooRexx

  

  
  BSF4ooRexx, the Mac-version includes 64-Bit ooRexx at revision
11467 which I used to run "test1.rex":

  
HTH,---rony


On 02.09.2018 22:41, P.O. Jonsson
  wrote:


  
  Dear Rony,
  
  
  I know this is late feedback but I was finally able
to test your examples (from your Dropbox) and I still think
there is something wrong. Test1.rex performs ls -al
which should produce something like
  
  
  
POs-12Core-Pro:addresswith po$
ls -al
total 104
drwxrwxrwx  14 po  staff  
476  1 Sep 17:57 .
drwxr-xr-x+ 53 po  staff 
1802  1 Sep 17:48 ..
-rw-r--r--@  1 po  staff 
6148  1 Sep 17:48 .DS_Store
-rw---@  1 po  staff   416
31 Jul 11:25 filter1.rex
-rw---@  1 po  staff   394
31 Jul 11:25 filter2.rex
-rw---@  1 po  staff   403
31 Jul 11:25 filter3.rex
-rw---@  1 po  staff  
691  1 Sep 17:57 test1.rex
-rw---@  1 po  staff   709
31 Jul 11:23 test2.rex
-rw---@  1 po  staff   720
31 Jul 11:22 test3.rex
-rw---@  1 po  staff   623
30 Jul 13:22 test4.rex
-rw---@  1 po  staff   546
30 Jul 13:14 useFilter1.rex
-rw---@  1 po  staff   547
30 Jul 13:15 useFilter2.rex
-rw---@  1 po  staff   547
30 Jul 13:15 useFilter3.rex
-rw---@  1 po  staff   739
31 Jul 11:26 useFilter4.rex
POs-12Core-Pro:addresswith
po$ 

  



  
When I run test1.rex with
  Build 11467 on a MAC I do not get any entities in the stem
  and a RC(127) which I think is an error. Here a trace, can
  you pinpoint where it goes wrong? I am sorry I cannot find
  it myself since I do not know in detail what to expect. I
  can see that the first part of the code runs fine (parsing
  the source) and I suspect something to be wrong around the
  „address“ command but since I do not know the exact syntax
  for the new behavior I can not find out what is missing.
  Any help is appreciated.





  POs-12Core-Pro:addresswith po$ rexx test1
       3 *-* parse upper source opSys +1
         >K>   "SOURCE" => "DARWIN COMMAND
/Users/po/AddressWith/test1.REX"
         >>>   "DARWIN COMMAND
/USERS/PO/ADDRESSWITH/TEST1.REX"
         >>>   "1"
         >>>   "D"
       4 *-* if opSys='W' 
         >>>   "0"
       6 *-*   else
       7 *-*     command="ls -al"
         >>>     

Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-09-03 Thread P.O. Jonsson
Dear Rony, my bad, there must have been something wrong in my build. With a fresh build from today (11491) I got the (I think) expected results (attached). For the first time I also understand what to use it for. I use address  „bash“ or address ‚ksh‘ quite often and pipe to a file the results that I read into a stem or array, now I can get all that into a stem directly. NICE!One remark: I noticed that "this is not an error“ came over as "his is not an error“ (missing the initial „t“) in usefilter1-usefilter3, can you have a 2nd look? POs-12Core-Pro:addresswith po$ ls -al
total 120
drwxrwxrwx  16 po  staff   544  3 Sep 15:24 .
drwxr-xr-x+ 53 po  staff  1802  3 Sep 15:19 ..
-rw-r--r--@  1 po  staff  6148  3 Sep 08:56 .DS_Store
-rw---@  1 po  staff   416 31 Jul 11:25 filter1.rex
-rw---@  1 po  staff   394 31 Jul 11:25 filter2.rex
-rw---@  1 po  staff   403 31 Jul 11:25 filter3.rex
-rw-r--r--   1 po  staff   885  3 Sep 15:16 test.txt
-rw---@  1 po  staff   691  3 Sep 15:14 test1.rex
-rw---@  1 po  staff   963  3 Sep 15:24 test1B.rex
-rw---@  1 po  staff   709 31 Jul 11:23 test2.rex
-rw---@  1 po  staff   720 31 Jul 11:22 test3.rex
-rw---@  1 po  staff   623 30 Jul 13:22 test4.rex
-rw---@  1 po  staff   546 30 Jul 13:14 useFilter1.rex
-rw---@  1 po  staff   547 30 Jul 13:15 useFilter2.rex
-rw---@  1 po  staff   547 30 Jul 13:15 useFilter3.rex
-rw---@  1 po  staff   739 31 Jul 11:26 useFilter4.rex

POs-12Core-Pro:addresswith po$ rexx test1
test1.REX -> redirecting to stems:

about to execute [ls -al] ->
<- after executing [ls -al].
"HI.": [HI.] hi~class: [The Stem class], hi.0: [17]
---
running command [ls -al] yielded the following output, stored in [HI.]:
rexx # 1: total 120
rexx # 2: drwxrwxrwx  16 po  staff   544  3 Sep 15:14 .
rexx # 3: drwxr-xr-x+ 53 po  staff  1802  3 Sep 14:58 ..
rexx # 4: -rw-r--r--@  1 po  staff  6148  3 Sep 08:56 .DS_Store
rexx # 5: -rw---@  1 po  staff   416 31 Jul 11:25 filter1.rex
rexx # 6: -rw---@  1 po  staff   394 31 Jul 11:25 filter2.rex
rexx # 7: -rw---@  1 po  staff   403 31 Jul 11:25 filter3.rex
rexx # 8: -rw-r--r--   1 po  staff   885  3 Sep 08:56 test.txt
rexx # 9: -rw---@  1 po  staff   691  3 Sep 15:14 test1.rex
rexx # 10: -rw---@  1 po  staff   775  3 Sep 08:56 test1B.rex
rexx # 11: -rw---@  1 po  staff   709 31 Jul 11:23 test2.rex
rexx # 12: -rw---@  1 po  staff   720 31 Jul 11:22 test3.rex
rexx # 13: -rw---@  1 po  staff   623 30 Jul 13:22 test4.rex
rexx # 14: -rw---@  1 po  staff   546 30 Jul 13:14 useFilter1.rex
rexx # 15: -rw---@  1 po  staff   547 30 Jul 13:15 useFilter2.rex
rexx # 16: -rw---@  1 po  staff   547 30 Jul 13:15 useFilter3.rex
rexx # 17: -rw---@  1 po  staff   739 31 Jul 11:26 useFilter4.rex

POs-12Core-Pro:addresswith po$ rexx test2
test2.REX -> redirecting to arrays (orderable collection):

about to execute [ls -al] ->
<- after executing [ls -al].
arr~class: [The Array class], arr~items: [17]
---
running command [ls -al] yielded the following output:
rexx # 1: total 120
rexx # 2: drwxrwxrwx  16 po  staff   544  3 Sep 15:24 .
rexx # 3: drwxr-xr-x+ 53 po  staff  1802  3 Sep 15:19 ..
rexx # 4: -rw-r--r--@  1 po  staff  6148  3 Sep 08:56 .DS_Store
rexx # 5: -rw---@  1 po  staff   416 31 Jul 11:25 filter1.rex
rexx # 6: -rw---@  1 po  staff   394 31 Jul 11:25 filter2.rex
rexx # 7: -rw---@  1 po  staff   403 31 Jul 11:25 filter3.rex
rexx # 8: -rw-r--r--   1 po  staff   885  3 Sep 15:16 test.txt
rexx # 9: -rw---@  1 po  staff   691  3 Sep 15:14 test1.rex
rexx # 10: -rw---@  1 po  staff   963  3 Sep 15:24 test1B.rex
rexx # 11: -rw---@  1 po  staff   709 31 Jul 11:23 test2.rex
rexx # 12: -rw---@  1 po  staff   720 31 Jul 11:22 test3.rex
rexx # 13: -rw---@  1 po  staff   623 30 Jul 13:22 test4.rex
rexx # 14: -rw---@  1 po  staff   546 30 Jul 13:14 useFilter1.rex
rexx # 15: -rw---@  1 po  staff   547 30 Jul 13:15 useFilter2.rex
rexx # 16: -rw---@  1 po  staff   547 30 Jul 13:15 useFilter3.rex
rexx # 17: -rw---@  1 po  staff   739 31 Jul 11:26 useFilter4.rex

POs-12Core-Pro:addresswith po$ rexx test3
test3.REX -> redirecting to lists (orderable collection):

about to execute [ls -al] ->
<- after executing [ls -al].
list~class: [The List class], list~items: [17]
---
running command [ls -al] yielded the following output:
rexx # 1: total 120
rexx # 2: drwxrwxrwx  16 po  staff   544  3 Sep 15:24 .
rexx # 3: drwxr-xr-x+ 53 po  staff  1802  3 Sep 15:19 ..
rexx # 4: -rw-r--r--@  1 po  staff  6148  3 Sep 08:56 .DS_Store
rexx # 5: -rw---@  1 po  staff   416 31 Jul 11:25 filter1.rex
rexx # 6: -rw---@  1 po  staff   394 31 Jul 11:25 filter2.rex
rexx # 7: -rw---@  1 po  staff   403 31 Jul 11:25 filter3.rex
rexx # 8: -rw-r--r--   1 po  staff   885  3 Sep 15:16 test.txt
rexx # 9: -rw---@  1 po  staff   691  3 Sep 15:14 test1.rex
rexx # 10: -rw---@  1 po  staff   963  3 Sep 15:24 test1B.rex
rexx # 11: -rw---@  

Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-09-03 Thread Rony G. Flatscher
Dear P.O.,

just tested it on my Mac and the test runs without problems and as expected. 
The ooRexx version used
was compiled on 20180726 with revision 11467.

Here the dropbox links:

  * 64-bit ooRexx rev 11467 for Windows and Linux:

  o This directory contains the directories
  + : includes various test scripts that 
excercise "address with"
including "test1.rex"
  + : includes variuos test scripts that 
excercie the new
variable reference ability of ooRexx

  * BSF4ooRexx, the Mac-version includes 64-Bit ooRexx at revision 11467 which 
I used to run
"test1.rex": 


HTH,

---rony



On 02.09.2018 22:41, P.O. Jonsson wrote:
> Dear Rony,
>
> I know this is late feedback but I was finally able to test your examples 
> (from your Dropbox) and
> I still think there is something wrong. Test1.rex performs *ls -al* which 
> should produce something
> like
>
> POs-12Core-Pro:addresswith po$ ls -al
> total 104
> drwxrwxrwx  14 po  staff   476  1 Sep 17:57 .
> drwxr-xr-x+ 53 po  staff  1802  1 Sep 17:48 ..
> -rw-r--r--@  1 po  staff  6148  1 Sep 17:48 .DS_Store
> -rw---@  1 po  staff   416 31 Jul 11:25 filter1.rex
> -rw---@  1 po  staff   394 31 Jul 11:25 filter2.rex
> -rw---@  1 po  staff   403 31 Jul 11:25 filter3.rex
> -rw---@  1 po  staff   691  1 Sep 17:57 test1.rex
> -rw---@  1 po  staff   709 31 Jul 11:23 test2.rex
> -rw---@  1 po  staff   720 31 Jul 11:22 test3.rex
> -rw---@  1 po  staff   623 30 Jul 13:22 test4.rex
> -rw---@  1 po  staff   546 30 Jul 13:14 useFilter1.rex
> -rw---@  1 po  staff   547 30 Jul 13:15 useFilter2.rex
> -rw---@  1 po  staff   547 30 Jul 13:15 useFilter3.rex
> -rw---@  1 po  staff   739 31 Jul 11:26 useFilter4.rex
> POs-12Core-Pro:addresswith po$ 
>
>
> When I run test1.rex with Build 11467 on a MAC I do not get any entities in 
> the stem and a RC(127)
> which I think is an error. Here a trace, can you pinpoint where it goes 
> wrong? I am sorry I cannot
> find it myself since I do not know in detail what to expect. I can see that 
> the first part of the
> code runs fine (parsing the source) and I suspect something to be wrong 
> around the „address“
> command but since I do not know the exact syntax for the new behavior I can 
> not find out what is
> missing. Any help is appreciated.
>
>
> POs-12Core-Pro:addresswith po$ rexx test1
>      3 *-* parse upper source opSys +1
>        >K>   "SOURCE" => "DARWIN COMMAND /Users/po/AddressWith/test1.REX"
>        >>>   "DARWIN COMMAND /USERS/PO/ADDRESSWITH/TEST1.REX"
>        >>>   "1"
>        >>>   "D"
>      4 *-* if opSys='W' 
>        >>>   "0"
>      6 *-*   else
>      7 *-*     command="ls -al"
>        >>>       "ls -al"
>      9 *-* prefix="rexx"
>        >>>   "rexx"
>     11 *-* parse source . . this
>        >K>   "SOURCE" => "DARWIN COMMAND /Users/po/AddressWith/test1.REX"
>        >>>   "DARWIN COMMAND /Users/po/AddressWith/test1.REX"
>        >>>   "/Users/po/AddressWith/test1.REX"
>     12 *-* say filespec("name",this) "-> redirecting to stems:"
>        >>>   "test1.REX -> redirecting to stems:"
> test1.REX -> redirecting to stems:
>     13 *-* say
>        >>>   ""
>
>     15 *-* say "about to execute" pp(command) "->"
>        >>>   "about to execute [ls -al] ->"
> about to execute [ls -al] ->
>     17 *-* address "" command with output stem hi.
>        >>>   "ls -al"
>        >K>   "INPUT" => "HI."
>        +++   "RC(127)"
>     19 *-* say "<- after executing" pp(command)"."
>        >>>   "<- after executing [ls -al]."
> <- after executing [ls -al].
>     21 *-* say '"HI.":' pp(hi.) "hi~class:" pp(hi.~class)", hi.0:" pp(hi.0)
>        >>>   ""HI.": [HI.] hi~class: [The Stem class], hi.0: [0]"
> "HI.": [HI.] hi~class: [The Stem class], hi.0: [0]
>     22 *-* say "---"
>        >>>   "---"
> ---
>     23 *-* say "running command" pp(command) "yielded the following output, 
> stored in" pp(hi.)":"
>        >>>   "running command [ls -al] yielded the following output, stored 
> in [HI.]:"
> running command [ls -al] yielded the following output, stored in [HI.]:
>     24 *-* do i=1 to hi.0
>        >K>     "TO" => "0"
>        >>>     "1"
> POs-12Core-Pro:addresswith po$ 
>
>
>
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se 
>
>
>
>
>> Am 28.07.2018 um 17:22 schrieb Rony > >:
>>
>> Dear P.O.,
>>
>> being on a visit weekend trip I have not been able to come up with samples 
>> of address...with that
>> work under Linux so far. However documentation and samples may be studied eg 
>> at
>>  or in the docs of the 
>> Regina  interpreter from
>> Sourceforge
>> .

Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-09-02 Thread P.O. Jonsson
Dear Rony,

I know this is late feedback but I was finally able to test your examples (from 
your Dropbox) and I still think there is something wrong. Test1.rex performs ls 
-al which should produce something like

POs-12Core-Pro:addresswith po$ ls -al
total 104
drwxrwxrwx  14 po  staff   476  1 Sep 17:57 .
drwxr-xr-x+ 53 po  staff  1802  1 Sep 17:48 ..
-rw-r--r--@  1 po  staff  6148  1 Sep 17:48 .DS_Store
-rw---@  1 po  staff   416 31 Jul 11:25 filter1.rex
-rw---@  1 po  staff   394 31 Jul 11:25 filter2.rex
-rw---@  1 po  staff   403 31 Jul 11:25 filter3.rex
-rw---@  1 po  staff   691  1 Sep 17:57 test1.rex
-rw---@  1 po  staff   709 31 Jul 11:23 test2.rex
-rw---@  1 po  staff   720 31 Jul 11:22 test3.rex
-rw---@  1 po  staff   623 30 Jul 13:22 test4.rex
-rw---@  1 po  staff   546 30 Jul 13:14 useFilter1.rex
-rw---@  1 po  staff   547 30 Jul 13:15 useFilter2.rex
-rw---@  1 po  staff   547 30 Jul 13:15 useFilter3.rex
-rw---@  1 po  staff   739 31 Jul 11:26 useFilter4.rex
POs-12Core-Pro:addresswith po$ 


When I run test1.rex with Build 11467 on a MAC I do not get any entities in the 
stem and a RC(127) which I think is an error. Here a trace, can you pinpoint 
where it goes wrong? I am sorry I cannot find it myself since I do not know in 
detail what to expect. I can see that the first part of the code runs fine 
(parsing the source) and I suspect something to be wrong around the „address“ 
command but since I do not know the exact syntax for the new behavior I can not 
find out what is missing. Any help is appreciated.


POs-12Core-Pro:addresswith po$ rexx test1
 3 *-* parse upper source opSys +1
   >K>   "SOURCE" => "DARWIN COMMAND /Users/po/AddressWith/test1.REX"
   >>>   "DARWIN COMMAND /USERS/PO/ADDRESSWITH/TEST1.REX"
   >>>   "1"
   >>>   "D"
 4 *-* if opSys='W' 
   >>>   "0"
 6 *-*   else
 7 *-* command="ls -al"
   >>>   "ls -al"
 9 *-* prefix="rexx"
   >>>   "rexx"
11 *-* parse source . . this
   >K>   "SOURCE" => "DARWIN COMMAND /Users/po/AddressWith/test1.REX"
   >>>   "DARWIN COMMAND /Users/po/AddressWith/test1.REX"
   >>>   "/Users/po/AddressWith/test1.REX"
12 *-* say filespec("name",this) "-> redirecting to stems:"
   >>>   "test1.REX -> redirecting to stems:"
test1.REX -> redirecting to stems:
13 *-* say
   >>>   ""

15 *-* say "about to execute" pp(command) "->"
   >>>   "about to execute [ls -al] ->"
about to execute [ls -al] ->
17 *-* address "" command with output stem hi.
   >>>   "ls -al"
   >K>   "INPUT" => "HI."
   +++   "RC(127)"
19 *-* say "<- after executing" pp(command)"."
   >>>   "<- after executing [ls -al]."
<- after executing [ls -al].
21 *-* say '"HI.":' pp(hi.) "hi~class:" pp(hi.~class)", hi.0:" pp(hi.0)
   >>>   ""HI.": [HI.] hi~class: [The Stem class], hi.0: [0]"
"HI.": [HI.] hi~class: [The Stem class], hi.0: [0]
22 *-* say "---"
   >>>   "---"
---
23 *-* say "running command" pp(command) "yielded the following output, 
stored in" pp(hi.)":"
   >>>   "running command [ls -al] yielded the following output, stored in 
[HI.]:"
running command [ls -al] yielded the following output, stored in [HI.]:
24 *-* do i=1 to hi.0
   >K> "TO" => "0"
   >>> "1"
POs-12Core-Pro:addresswith po$ 



Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se




> Am 28.07.2018 um 17:22 schrieb Rony :
> 
> Dear P.O.,
> 
> being on a visit weekend trip I have not been able to come up with samples of 
> address...with that work under Linux so far. However documentation and 
> samples may be studied eg at  > or in the docs of the 
> Regina  interpreter from Sourceforge 
>   
> >.
> 
> ooRexx adds additional features, namely support for orderable collections, 
> streams and monitors. You may get at samples studying the ooRexx ADDRESS 
> testunit.
> 
> HTH
> 
> —-rony
> 
> Rony G. Flatscher (mobil/e)
> 
> Am 27.07.2018 um 20:15 schrieb Rony  >:
> 
>> Dear P.O.,
>> 
>> congratulations and thanks for reporting!
>> 
>> Ad my examples: they were written for Windows, therefore using cmd as the 
>> einvironment and using the command ‚dir‘.
>> 
>> Please change ‚cmd‘ to two quotes and the command to ‚ls -al‘, then the 
>> examples should run under Unix.
>> 
>> Best regards
>> 
>> —-rony
>> 
>> Rony G. Flatscher (mobil/e)
>> 
>> Am 27.07.2018 um 18:16 schrieb P.O. Jonsson > >:
>> 
>>> My first reply bounced so here is another try:
>>> 
>>> Dear Rony,
>>> 
>>> This is just to inform that I have successfully created a fresh build for 
>>> version 11467 of 

Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-30 Thread P.O. Jonsson
I am away with little time left for testing but I will come back, I wanted to 
compare the installer from BSF with my own at the same time. But it will take 
some days.

Von meinen Macbook gesendet

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se



> Am 30.07.2018 um 15:32 schrieb Rony G. Flatscher :
> 
> Dear P.O.:
> 
> today I was able to overhaul the address-with samples a little bit to make 
> sure that they execute under Windows and MacOSX (previously they would run on 
> Windows only). 
> Also, I added a few more samples and some comments and more output 
> information to explain what the different nutshell examples 
> excercise/demonstrate. (If time permits, I will add a few more examples 
> tomorrow.)
> HTH,
> 
> ---rony
> P.S.: This is talking about the samples in the subdirectory 
> "examples.addressWith" from my Dropbox which contains Windows and MacOSX 
> versions of ooRexx 5.0 beta with "address with" and "variable references" 
> (cf. 
>  
> ). 
> 
> On 28.07.2018 23:43, P.O. Jonsson wrote:
>> Dear Rony,
>> 
>> I am in Sweden on holidays so I have little time to do things, as soon as I 
>> have some time I will come back on testing these things on Mac and on the 
>> Installer.
>> 
>> Von meinen Macbook gesendet
>> 
>> Hälsningar/Regards/Grüsse,
>> P.O. Jonsson
>> oor...@jonases.se 
>> 
>> 
>> 
>>> Am 28.07.2018 um 17:22 schrieb Rony >> >:
>>> 
>>> Dear P.O.,
>>> 
>>> being on a visit weekend trip I have not been able to come up with samples 
>>> of address...with that work under Linux so far. However documentation and 
>>> samples may be studied eg at 
>>> >> > or in the docs of the 
>>> Regina  interpreter from Sourceforge 
>>> >>  
>>> >.
>>> 
>>> ooRexx adds additional features, namely support for orderable collections, 
>>> streams and monitors. You may get at samples studying the ooRexx ADDRESS 
>>> testunit.
>>> 
>>> HTH
>>> 
>>> —-rony
>>> 
>>> Rony G. Flatscher (mobil/e)
>>> 
>>> Am 27.07.2018 um 20:15 schrieb Rony >> >:
>>> 
 Dear P.O.,
 
 congratulations and thanks for reporting!
 
 Ad my examples: they were written for Windows, therefore using cmd as the 
 einvironment and using the command ‚dir‘.
 
 Please change ‚cmd‘ to two quotes and the command to ‚ls -al‘, then the 
 examples should run under Unix.
 
 Best regards
 
 —-rony
 
 Rony G. Flatscher (mobil/e)
 
 Am 27.07.2018 um 18:16 schrieb P.O. Jonsson >>> >:
 
> My first reply bounced so here is another try:
> 
> Dear Rony,
> 
> This is just to inform that I have successfully created a fresh build for 
> version 11467 of ooRexx for Mac and successfully tested it with some of 
> my own programs and rexxcps. Runs as expected. In the coming days I will 
> see if I can make a new pkg installer.
> 
> That was the good news. The bad news is that I think it is not working as 
> it should with the newest features. I downloaded your examples and run 
> them blindly and some seems to work and others not. I will install the 
> BSF/ooRexxx installer and compare the output later.
> 
> I am still using a tweaked version of cmakelists.txt so there might be 
> something there, I will investigate and come back.
> 
> Attached the results of my runs
> 
> 
> 
> 
> 
> Von meinen Macbook gesendet
> 
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se 
> 
> 
> 
> --
> 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

--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-30 Thread Rony G. Flatscher
Dear P.O.:

today I was able to overhaul the address-with samples a little bit to make sure 
that they execute
under Windows and MacOSX (previously they would run on Windows only).

Also, I added a few more samples and some comments and more output information 
to explain what the
different nutshell examples excercise/demonstrate. (If time permits, I will add 
a few more examples
tomorrow.)

HTH,

---rony

P.S.: This is talking about the samples in the subdirectory 
"examples.addressWith" from my Dropbox
which contains Windows and MacOSX versions of ooRexx 5.0 beta with "address 
with" and "variable
references" (cf. 
).


On 28.07.2018 23:43, P.O. Jonsson wrote:
> Dear Rony,
>
> I am in Sweden on holidays so I have little time to do things, as soon as I 
> have some time I will
> come back on testing these things on Mac and on the Installer.
>
> Von meinen Macbook gesendet
>
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se 
>
>
>
>> Am 28.07.2018 um 17:22 schrieb Rony > >:
>>
>> Dear P.O.,
>>
>> being on a visit weekend trip I have not been able to come up with samples 
>> of address...with that
>> work under Linux so far. However documentation and samples may be studied eg 
>> at
>>  or in the docs of the 
>> Regina  interpreter from
>> Sourceforge
>> .
>>
>> ooRexx adds additional features, namely support for orderable collections, 
>> streams and monitors.
>> You may get at samples studying the ooRexx ADDRESS testunit.
>>
>> HTH
>>
>> —-rony
>>
>> Rony G. Flatscher (mobil/e)
>>
>> Am 27.07.2018 um 20:15 schrieb Rony > >:
>>
>>> Dear P.O.,
>>>
>>> congratulations and thanks for reporting!
>>>
>>> Ad my examples: they were written for Windows, therefore using cmd as the 
>>> einvironment and using
>>> the command ‚dir‘.
>>>
>>> Please change ‚cmd‘ to two quotes and the command to ‚ls -al‘, then the 
>>> examples should run
>>> under Unix.
>>>
>>> Best regards
>>>
>>> —-rony
>>>
>>> Rony G. Flatscher (mobil/e)
>>>
>>> Am 27.07.2018 um 18:16 schrieb P.O. Jonsson >> >:
>>>
 My first reply bounced so here is another try:

 Dear Rony,

 This is just to inform that I have successfully created a fresh build for 
 version 11467 of
 ooRexx for Mac and successfully tested it with some of my own programs and 
 rexxcps. Runs as
 expected. In the coming days I will see if I can make a new pkg installer.

 That was the good news. The bad news is that I think it is not working as 
 it should with the
 newest features. I downloaded your examples and run them blindly and some 
 seems to work and
 others not. I will install the BSF/ooRexxx installer and compare the 
 output later.

 I am still using a tweaked version of cmakelists.txt so there might be 
 something there, I will
 investigate and come back.

 Attached the results of my runs

 
 


 Von meinen Macbook gesendet

 Hälsningar/Regards/Grüsse,
 P.O. Jonsson
 oor...@jonases.se 



--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-28 Thread P.O. Jonsson
Dear Rony,

I am in Sweden on holidays so I have little time to do things, as soon as I 
have some time I will come back on testing these things on Mac and on the 
Installer.

Von meinen Macbook gesendet

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se



> Am 28.07.2018 um 17:22 schrieb Rony :
> 
> Dear P.O.,
> 
> being on a visit weekend trip I have not been able to come up with samples of 
> address...with that work under Linux so far. However documentation and 
> samples may be studied eg at  > or in the docs of the 
> Regina  interpreter from Sourceforge 
>   
> >.
> 
> ooRexx adds additional features, namely support for orderable collections, 
> streams and monitors. You may get at samples studying the ooRexx ADDRESS 
> testunit.
> 
> HTH
> 
> —-rony
> 
> Rony G. Flatscher (mobil/e)
> 
> Am 27.07.2018 um 20:15 schrieb Rony  >:
> 
>> Dear P.O.,
>> 
>> congratulations and thanks for reporting!
>> 
>> Ad my examples: they were written for Windows, therefore using cmd as the 
>> einvironment and using the command ‚dir‘.
>> 
>> Please change ‚cmd‘ to two quotes and the command to ‚ls -al‘, then the 
>> examples should run under Unix.
>> 
>> Best regards
>> 
>> —-rony
>> 
>> Rony G. Flatscher (mobil/e)
>> 
>> Am 27.07.2018 um 18:16 schrieb P.O. Jonsson > >:
>> 
>>> My first reply bounced so here is another try:
>>> 
>>> Dear Rony,
>>> 
>>> This is just to inform that I have successfully created a fresh build for 
>>> version 11467 of ooRexx for Mac and successfully tested it with some of my 
>>> own programs and rexxcps. Runs as expected. In the coming days I will see 
>>> if I can make a new pkg installer.
>>> 
>>> That was the good news. The bad news is that I think it is not working as 
>>> it should with the newest features. I downloaded your examples and run them 
>>> blindly and some seems to work and others not. I will install the 
>>> BSF/ooRexxx installer and compare the output later.
>>> 
>>> I am still using a tweaked version of cmakelists.txt so there might be 
>>> something there, I will investigate and come back.
>>> 
>>> Attached the results of my runs
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Von meinen Macbook gesendet
>>> 
>>> Hälsningar/Regards/Grüsse,
>>> P.O. Jonsson
>>> oor...@jonases.se 
>>> 
>>> 
>>> 
>>> --
>>> 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 
>>> 
> --
> 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

--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-28 Thread Rony
Dear P.O.,

being on a visit weekend trip I have not been able to come up with samples of 
address...with that work under Linux so far. However documentation and samples 
may be studied eg at  or in the 
docs of the Regina  interpreter from Sourceforge 
.

ooRexx adds additional features, namely support for orderable collections, 
streams and monitors. You may get at samples studying the ooRexx ADDRESS 
testunit.

HTH

—-rony

Rony G. Flatscher (mobil/e)

> Am 27.07.2018 um 20:15 schrieb Rony :
> 
> Dear P.O.,
> 
> congratulations and thanks for reporting!
> 
> Ad my examples: they were written for Windows, therefore using cmd as the 
> einvironment and using the command ‚dir‘.
> 
> Please change ‚cmd‘ to two quotes and the command to ‚ls -al‘, then the 
> examples should run under Unix.
> 
> Best regards
> 
> —-rony
> 
> Rony G. Flatscher (mobil/e)
> 
>> Am 27.07.2018 um 18:16 schrieb P.O. Jonsson :
>> 
>> My first reply bounced so here is another try:
>> 
>> Dear Rony,
>> 
>> This is just to inform that I have successfully created a fresh build for 
>> version 11467 of ooRexx for Mac and successfully tested it with some of my 
>> own programs and rexxcps. Runs as expected. In the coming days I will see if 
>> I can make a new pkg installer.
>> 
>> That was the good news. The bad news is that I think it is not working as it 
>> should with the newest features. I downloaded your examples and run them 
>> blindly and some seems to work and others not. I will install the 
>> BSF/ooRexxx installer and compare the output later.
>> 
>> I am still using a tweaked version of cmakelists.txt so there might be 
>> something there, I will investigate and come back.
>> 
>> Attached the results of my runs
>> 
>> 
>> 
>> 
>> 
>> Von meinen Macbook gesendet
>> 
>> Hälsningar/Regards/Grüsse,
>> P.O. Jonsson
>> oor...@jonases.se
>> 
>> 
>> 
>> --
>> 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
--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-27 Thread Rony
Dear P.O.,

congratulations and thanks for reporting!

Ad my examples: they were written for Windows, therefore using cmd as the 
einvironment and using the command ‚dir‘.

Please change ‚cmd‘ to two quotes and the command to ‚ls -al‘, then the 
examples should run under Unix.

Best regards

—-rony

Rony G. Flatscher (mobil/e)

> Am 27.07.2018 um 18:16 schrieb P.O. Jonsson :
> 
> My first reply bounced so here is another try:
> 
> Dear Rony,
> 
> This is just to inform that I have successfully created a fresh build for 
> version 11467 of ooRexx for Mac and successfully tested it with some of my 
> own programs and rexxcps. Runs as expected. In the coming days I will see if 
> I can make a new pkg installer.
> 
> That was the good news. The bad news is that I think it is not working as it 
> should with the newest features. I downloaded your examples and run them 
> blindly and some seems to work and others not. I will install the BSF/ooRexxx 
> installer and compare the output later.
> 
> I am still using a tweaked version of cmakelists.txt so there might be 
> something there, I will investigate and come back.
> 
> Attached the results of my runs
> 
> 
> 
> 
> 
> Von meinen Macbook gesendet
> 
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se
> 
> 
> 
> --
> 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
--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-18 Thread Rony G. Flatscher
Adding both, addressWith and variableReference to trunk would help expose it to 
a much wider
audience for experimenting with it once new betas got created from trunk. Both 
features are a real
boon for ooRexx, IMHO.

---rony


On 18.07.2018 12:35, Erich Steinböck wrote:
> I'd really value this addition. With RFE#4 it's almost the oldest request for 
> enhancement that we
> have in our tracker. 
>
> I'll start doing the required changes for rexxref and rexxpg when returning 
> from vacation. 
> Finishing will take some time as there are quite a few API changes.
>
> Rick McGuire mailto:object.r...@gmail.com>> schrieb 
> am Di., 17. Juli 2018
> 22:08:
>
> I'm not sensing that there is much interest in these features being in 
> 5.0.
>
> Rick
>
> On Mon, Jul 9, 2018 at 4:12 PM Rick McGuire  > wrote:
>
> Things have been very quiet about these new features, so I don't 
> really know if anybody is
> actually playing around with them or not. The code is done, tests are 
> written. The biggest
> outstanding item is getting the docs written. So, we need to reach a 
> consensus on whether
> either of these features should be in 5.0.0 so the process of merging 
> can start.
>
> Rick 
>

--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-18 Thread Erich Steinböck
I'd really value this addition. With RFE#4 it's almost the oldest request
for enhancement that we have in our tracker.

I'll start doing the required changes for rexxref and rexxpg when returning
from vacation.  Finishing will take some time as there are quite a few API
changes.

Rick McGuire  schrieb am Di., 17. Juli 2018 22:08:

> I'm not sensing that there is much interest in these features being in 5.0.
>
> Rick
>
> On Mon, Jul 9, 2018 at 4:12 PM Rick McGuire  wrote:
>
>> Things have been very quiet about these new features, so I don't really
>> know if anybody is actually playing around with them or not. The code is
>> done, tests are written. The biggest outstanding item is getting the docs
>> written. So, we need to reach a consensus on whether either of these
>> features should be in 5.0.0 so the process of merging can start.
>>
>> Rick
>>
>
> --
> 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
>
--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-17 Thread Rick McGuire
I'm not sensing that there is much interest in these features being in 5.0.

Rick

On Mon, Jul 9, 2018 at 4:12 PM Rick McGuire  wrote:

> Things have been very quiet about these new features, so I don't really
> know if anybody is actually playing around with them or not. The code is
> done, tests are written. The biggest outstanding item is getting the docs
> written. So, we need to reach a consensus on whether either of these
> features should be in 5.0.0 so the process of merging can start.
>
> Rick
>
--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-12 Thread Rony G. Flatscher
Today I was able to create (untested) Windows versions (32/64bit, with and 
without debug infos) of
ooRexx from the current trunk. Here is the Dropbox-link:
.

The trunk version does not include address with or variable references. For 
that Windows 64-bit
debug versions can be fetched from my Dropbox from:
.

All of these ooRexx installation packages will be available at least over the 
weekend.

---rony


On 11.07.2018 17:18, Rony G. Flatscher wrote:
> In the meantime I updated Rick's sandbox 64-bit-Windows ooRexx debug versions 
> for the "variable
> references" and "address with" (added three simple Rexx examples there as 
> well).
>
> The URL remained the same (see at the bottom).
>
> ---rony
>
>
> On 11.07.2018 13:27, Rony G. Flatscher wrote:
>> On 09.07.2018 23:24, Rick McGuire wrote:
>>> Jon, 
>>>
>>> A variable reference is something that works the way people keep thinking 
>>> use arg works. There are
>>> basically three pieces to this:
>>>
>>> 1. A variable reference class that can hold a reference to a variable. 
>>> Using a variable reference
>>> instance, a variable value can be retrieved or set. 
>>> 2. A new operator (well, two actually) that creates an instance of a 
>>> variable reference object
>>> from the current execution context. 
>>> 3. An extension to USE ARG that allows an argument to be specified as a 
>>> required variable
>>> reference. This type of argument creates a variable alias in the caller. 
>>>
>>> Most of this is invisible to the caller, but, for example, suppose you want 
>>> to have a call where
>>> you have an error code that is returned and you also wish to pass other 
>>> information back if the
>>> call was successful. There are many awkward solutions that people have used 
>>> for this, but with the
>>> variable references you can do this. 
>>>
>>> if myFunc(>info) == 0 then 
>>>
>>> The > prefix operator creates a reference to the variable info that is 
>>> passed to the caller. On
>>> the call target side, you would have 
>>>
>>> use arg >returnInfo
>>>
>>> ...
>>>  returnInfo = result 
>>> return 0
>>>
>>> Assigning something to returnInfo actually assigns the value to the 
>>> variable info back in the
>>> caller.  Because the thing that gets passed around is an object instance, 
>>> this call-by-reference
>>> type will also work from native code. 
>>>
>>> This is not in trunk yet, only in the sandbox branch sandbox\rick\reference
>>>
>>> You would need to build this yourself or I believe Rony had a build in his 
>>> dropbox someplace.
>> Yes, they still are there (I have a subdirectory with Rick's two sandbox 
>> versions, one "address
>> with" and one "reference", here is the URL:
>> .
>>
>> Please note that there are a few little Rexx programs that experiment, 
>> "play" with the feature.
>>
>> Also, please note the dates of the productions (64-bit Windows versions 
>> only), i.e. the version that
>> includes the variable reference feature was built on May 7th. Will try to 
>> find a time slot to update
>> the reference sandbox version as I saw that new commits have been applied to 
>> it in the past days.
>>
>> ---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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-11 Thread Rony G. Flatscher
In the meantime I updated Rick's sandbox 64-bit-Windows ooRexx debug versions 
for the "variable
references" and "address with" (added three simple Rexx examples there as well).

The URL remained the same (see at the bottom).

---rony


On 11.07.2018 13:27, Rony G. Flatscher wrote:
> On 09.07.2018 23:24, Rick McGuire wrote:
>> Jon, 
>>
>> A variable reference is something that works the way people keep thinking 
>> use arg works. There are
>> basically three pieces to this:
>>
>> 1. A variable reference class that can hold a reference to a variable. Using 
>> a variable reference
>> instance, a variable value can be retrieved or set. 
>> 2. A new operator (well, two actually) that creates an instance of a 
>> variable reference object
>> from the current execution context. 
>> 3. An extension to USE ARG that allows an argument to be specified as a 
>> required variable
>> reference. This type of argument creates a variable alias in the caller. 
>>
>> Most of this is invisible to the caller, but, for example, suppose you want 
>> to have a call where
>> you have an error code that is returned and you also wish to pass other 
>> information back if the
>> call was successful. There are many awkward solutions that people have used 
>> for this, but with the
>> variable references you can do this. 
>>
>> if myFunc(>info) == 0 then 
>>
>> The > prefix operator creates a reference to the variable info that is 
>> passed to the caller. On
>> the call target side, you would have 
>>
>> use arg >returnInfo
>>
>> ...
>>  returnInfo = result 
>> return 0
>>
>> Assigning something to returnInfo actually assigns the value to the variable 
>> info back in the
>> caller.  Because the thing that gets passed around is an object instance, 
>> this call-by-reference
>> type will also work from native code. 
>>
>> This is not in trunk yet, only in the sandbox branch sandbox\rick\reference
>>
>> You would need to build this yourself or I believe Rony had a build in his 
>> dropbox someplace.
> Yes, they still are there (I have a subdirectory with Rick's two sandbox 
> versions, one "address
> with" and one "reference", here is the URL:
> .
>
> Please note that there are a few little Rexx programs that experiment, "play" 
> with the feature.
>
> Also, please note the dates of the productions (64-bit Windows versions 
> only), i.e. the version that
> includes the variable reference feature was built on May 7th. Will try to 
> find a time slot to update
> the reference sandbox version as I saw that new commits have been applied to 
> it in the past days.
>
> ---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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-11 Thread Rony G. Flatscher

On 09.07.2018 23:24, Rick McGuire wrote:
> Jon, 
>
> A variable reference is something that works the way people keep thinking use 
> arg works. There are
> basically three pieces to this:
>
> 1. A variable reference class that can hold a reference to a variable. Using 
> a variable reference
> instance, a variable value can be retrieved or set. 
> 2. A new operator (well, two actually) that creates an instance of a variable 
> reference object
> from the current execution context. 
> 3. An extension to USE ARG that allows an argument to be specified as a 
> required variable
> reference. This type of argument creates a variable alias in the caller. 
>
> Most of this is invisible to the caller, but, for example, suppose you want 
> to have a call where
> you have an error code that is returned and you also wish to pass other 
> information back if the
> call was successful. There are many awkward solutions that people have used 
> for this, but with the
> variable references you can do this. 
>
> if myFunc(>info) == 0 then 
>
> The > prefix operator creates a reference to the variable info that is passed 
> to the caller. On
> the call target side, you would have 
>
> use arg >returnInfo
>
> ...
>  returnInfo = result 
> return 0
>
> Assigning something to returnInfo actually assigns the value to the variable 
> info back in the
> caller.  Because the thing that gets passed around is an object instance, 
> this call-by-reference
> type will also work from native code. 
>
> This is not in trunk yet, only in the sandbox branch sandbox\rick\reference
>
> You would need to build this yourself or I believe Rony had a build in his 
> dropbox someplace.
Yes, they still are there (I have a subdirectory with Rick's two sandbox 
versions, one "address
with" and one "reference", here is the URL:
.

Please note that there are a few little Rexx programs that experiment, "play" 
with the feature.

Also, please note the dates of the productions (64-bit Windows versions only), 
i.e. the version that
includes the variable reference feature was built on May 7th. Will try to find 
a time slot to update
the reference sandbox version as I saw that new commits have been applied to it 
in the past days.

---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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-09 Thread Rick McGuire
Jon,

A variable reference is something that works the way people keep thinking
use arg works. There are basically three pieces to this:

1. A variable reference class that can hold a reference to a variable.
Using a variable reference instance, a variable value can be retrieved or
set.
2. A new operator (well, two actually) that creates an instance of a
variable reference object from the current execution context.
3. An extension to USE ARG that allows an argument to be specified as a
required variable reference. This type of argument creates a variable alias
in the caller.

Most of this is invisible to the caller, but, for example, suppose you want
to have a call where you have an error code that is returned and you also
wish to pass other information back if the call was successful. There are
many awkward solutions that people have used for this, but with the
variable references you can do this.

if myFunc(>info) == 0 then

The > prefix operator creates a reference to the variable info that is
passed to the caller. On the call target side, you would have

use arg >returnInfo

...
 returnInfo = result
return 0

Assigning something to returnInfo actually assigns the value to the
variable info back in the caller.  Because the thing that gets passed
around is an object instance, this call-by-reference type will also work
from native code.

This is not in trunk yet, only in the sandbox branch sandbox\rick\reference

You would need to build this yourself or I believe Rony had a build in his
dropbox someplace.

Rick

On Mon, Jul 9, 2018 at 5:08 PM Jon Wolfers  wrote:

> Hi Rick,
>
> Can you (or someone else) explain in simple layman's terms what a variable
> reference is and when one would want to use it, what's neat about it.
>
> In order to test/use play with these do we just need the latest release of
> 5.0.0 or something more or different.
>
> Sorry if either or both of these questions have been asked before - I
> missed them.
>
> thanks,
>
> Jon
>
>
> On 9 July 2018 at 21:12, Rick McGuire  wrote:
>
>> Things have been very quiet about these new features, so I don't really
>> know if anybody is actually playing around with them or not. The code is
>> done, tests are written. The biggest outstanding item is getting the docs
>> written. So, we need to reach a consensus on whether either of these
>> features should be in 5.0.0 so the process of merging can start.
>>
>> Rick
>>
>>
>> --
>> 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
>>
>>
>
> --
> 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
>
--
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


Re: [Oorexx-devel] Address With and variable references in 5.0.0

2018-07-09 Thread Jon Wolfers
Hi Rick,

Can you (or someone else) explain in simple layman's terms what a variable
reference is and when one would want to use it, what's neat about it.

In order to test/use play with these do we just need the latest release of
5.0.0 or something more or different.

Sorry if either or both of these questions have been asked before - I
missed them.

thanks,

Jon


On 9 July 2018 at 21:12, Rick McGuire  wrote:

> Things have been very quiet about these new features, so I don't really
> know if anybody is actually playing around with them or not. The code is
> done, tests are written. The biggest outstanding item is getting the docs
> written. So, we need to reach a consensus on whether either of these
> features should be in 5.0.0 so the process of merging can start.
>
> Rick
>
> 
> --
> 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
>
>
--
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