Re: [Oorexx-devel] Multithreading question

2011-07-01 Thread Rony G. Flatscher
On 01.07.2011 17:07, Rick McGuire wrote: ... cut ... Again, thank you very much indeed ! The problem I faced was as follows: while running the message loop access to some of the object's variables is needed. When a guard lock exists for the message loop method, then no other - concurrently

[Oorexx-devel] Question ad segmentation fault in the context of CString(...) ?

2011-07-03 Thread Rony G. Flatscher
While debugging a program I got segmenation faults. Tracing down the problem it turns out that from a non-Rexx-function that usually returns strings it also may return NULL. So, in the following sequence a segmentation fault occurs: val=someString(...); // returns a string or NULL

[Oorexx-devel] GetCallerContext(), GetAllContextVariables(), GetContextVariable(), SetContextVariable(), DropContextVariable() applicable for calling methods ?

2011-07-04 Thread Rony G. Flatscher
Maybe I am overlooking the obvious: what APIs are there to get, set or drop context variables in methods? The mentioned APIs are documented to be only available for routines and exits, but not for methods. Also GetCallerContext() is documented to only work for routines, exits! Is it not possible

Re: [Oorexx-devel] GetCallerContext(), GetAllContextVariables(), GetContextVariable(), SetContextVariable(), DropContextVariable() applicable for calling methods ?

2011-07-04 Thread Rony G. Flatscher
On Mon, Jul 4, 2011 at 8:35 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at mailto:rony.flatsc...@wu-wien.ac.at wrote: Maybe I am overlooking the obvious: what APIs are there to get, set or drop context variables in methods? In a method context, you use GetObjectVariable

[Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-04 Thread Rony G. Flatscher
Hi there, in the process of creating an external ooRexx function library, I have sometimes to transport strings as UTF-8, even if non-7-Bit-ASCII characters are part of it (for non-English characters). Ist there a simple/easy way in C++ how one could create UTF-8 strings from 8-Bit-Strings and

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread Rony G. Flatscher
Hi Jean-Louis, 2011/7/4 Rony G. Flatscher rony.flatsc...@wu-wien.ac.at mailto:rony.flatsc...@wu-wien.ac.at Hi there, in the process of creating an external ooRexx function library, I have sometimes to transport strings as UTF-8, even if non-7-Bit-ASCII characters are part

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread Rony G. Flatscher
P.S.: Am even contemplating of using JNI (the Java native interface) which possesses UTF-8 encodings/decodings out of the box, which means that the dbus library would have to become a part of BSF4ooRexx. Should ooRexx ever get UTF-8/Unicode capabilities I could adjust the respective code

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread Rony G. Flatscher
))) char=c1||c2 end out=out||char end return out *From:* Rony G. Flatscher [mailto:rony.flatsc...@wu-wien.ac.at] *Sent:* 05 July 2011 09:44 *To:* Open Object Rexx

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread Rony G. Flatscher
this is exactly what you want. http://www.gnu.org/software/libiconv/ Yours, Bruce On Jul 5, 2011, at 1:43 AM, Rony G. Flatscher wrote: Hi Jean-Louis, 2011/7/4 Rony G. Flatscher rony.flatsc...@wu-wien.ac.at mailto:rony.flatsc...@wu-wien.ac.at Hi there, in the process of creating

[Oorexx-devel] IsString(obj) identical to IsOfType(obj, STRING) or is there a difference among the two APIs ?

2011-07-12 Thread Rony G. Flatscher
While debugging a library, I stumbled about the following behaviour: after replacing context-IsTypeOf(obj,STRING) with context-IsString(obj) the resulting library would not behave the same. Undoing the change makes it work again. Not being sure what the cause really is, I just would

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, STRING) or is there a difference among the two APIs ?

2011-07-12 Thread Rony G. Flatscher
Sorry, forgot additional infos: * 64-Bit Linux * official 64-Bit Debian ooRexx 4.1.0 ---rony On 12.07.2011 21:56, Rony G. Flatscher wrote: While debugging a library, I stumbled about the following behaviour: after replacing context-IsTypeOf(obj,STRING) with context

Re: [Oorexx-devel] IsString(obj) identical to IsOfType(obj, STRING) or is there a difference among the two APIs ?

2011-07-12 Thread Rony G. Flatscher
On 12.07.2011 22:21, Rick McGuire wrote: On Tue, Jul 12, 2011 at 4:09 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: On 12.07.2011 22:05, Rick McGuire wrote: On Tue, Jul 12, 2011 at 3:56 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: While debugging

[Oorexx-devel] Question ad ObjectToString(obj) ... (Re: IsString(obj) identical to IsOfType(obj, STRING) or is there a difference among the two APIs ?

2011-07-13 Thread Rony G. Flatscher
Will the ObjectToString(obj)-API guarantee to return a string object for which the String*-APIs can be safely used? I.e. would ObjectToString(...) turn a hidden Integer or a NumberString object to a String object? ---rony IsString() will only return true if the object is exactly an instance

[Oorexx-devel] Which URL leads to the ooRexx-Wiki ?

2011-07-19 Thread Rony G. Flatscher
Searching for the ooRexx-Wiki-pages and not able to find them! :( What is the URL of the ooRexx-Wiki, especially for Mark Miesfield's ooRexxUnit article and resources ? TIA, ---rony -- Magic Quadrant for

Re: [Oorexx-devel] Which URL leads to the ooRexx-Wiki ?

2011-07-19 Thread Rony G. Flatscher
Hi Mark, On 19.07.2011 17:58, Mark Miesfeld wrote: I think this is the URL: https://sourceforge.net/apps/mediawiki/oorexx/index.php?title=Main_Page thank you very much! But, the ooRexxUnit article's link is not working. I seem to recall that there was some transition previously and not

Re: [Oorexx-devel] Which URL leads to the ooRexx-Wiki ?

2011-07-19 Thread Rony G. Flatscher
Hi Mark, On 19.07.2011 18:09, Mark Miesfeld wrote: I'm awfully busy. How about if I build the pdf file and send it to you. That would be perfect! As I recall, I broke my keyboard in frustration the last time I tried to update the Wiki. :-( (Sorry to hear that!) Thank you very much

[Oorexx-devel] URL to documentation of the ooRexx testing framework (Re: Which URL leads to the ooRexx-Wiki ?

2011-07-20 Thread Rony G. Flatscher
! Here is the URL to the PDF-documents until the official ooRexx-Wiki can be updated to reflect these PDF books: http://wi.wu.ac.at/rgf/rexx/misc/ooTest/. Mark did a very admirable job in documenting this testing framework, IMHO! ---rony On 19.07.2011 18:16, Rony G. Flatscher wrote: Hi Mark

[Oorexx-devel] Question ad RexxSetHalt()

2011-08-03 Thread Rony G. Flatscher
When issuing a RexxSetHalt() to halt all Rexx threads with size_t res=RexxSetHalt(getpid(), (pthread_t) 0); the result is 1, which according to rexxpg.pdf means:RXARI_NOT_FOUND 1 The target Rexx procedure was not found.. The documentation reads: 10.10.1.1. RexxSetHalt

[Oorexx-devel] Howto end a Rexx interpreter instance in the following scenario ?

2011-08-03 Thread Rony G. Flatscher
The following scenario (a Rexx object running in the role of a server): * a Rexx program gets started, serving as a server, dispatching messages from clients o creates a message loop on a separate thread, dispatching messages from client * either calls

Re: [Oorexx-devel] Howto end a Rexx interpreter instance in the following scenario ?

2011-08-03 Thread Rony G. Flatscher
) the program ends altogether. ---rony On 03.08.2011 20:53, Rony G. Flatscher wrote: The following scenario (a Rexx object running in the role of a server): * a Rexx program gets started, serving as a server, dispatching messages from clients o creates a message loop on a separate

Re: [Oorexx-devel] Question ad RexxSetHalt()

2011-08-06 Thread Rony G. Flatscher
On 06.08.2011 12:22, Jean-Louis Faucher wrote: I see two reasons to return RXARI_NOT_FOUND from RexxSetHalt : either the interpreter is not started (not your case) or the threadid parameter is not registered with a RexxActivity (the procid parameter is not used) 0 is not a good value for

Re: [Oorexx-devel] Howto end a Rexx interpreter instance in the following scenario ?

2011-08-06 Thread Rony G. Flatscher
On 06.08.2011 12:23, Jean-Louis Faucher wrote: Could it be what you need ? context-Halt Raise a HALT condition on all threads associated with the interpreter instance *YES*, thank you very much, Jean-Louis ! (Haven't seen the forest for the trees anymore...) ---rony

Re: [Oorexx-devel] object, class, metaclass... Big picture ?

2011-08-08 Thread Rony G. Flatscher
Hi Jean-Louis, it seems that Rick is currently not online, so I try to give some shots, hoping they may help a little bit. [One problem in OO is the terminology, which sometimes comes into ones way (instead of clarifying concepts, sometimes they obfuscate them, unfortunately). There are quite a

Re: [Oorexx-devel] object, class, metaclass... Big picture ?

2011-08-08 Thread Rony G. Flatscher
of the started message. Eventually, when the asynchroneous message finished, one can learn that and even fetch the result. Cf. the reference documentation of the class Message. HTH, ---rony On 08.08.2011 11:39, Rony G. Flatscher wrote: Hi Jean-Louis, it seems that Rick is currently

Re: [Oorexx-devel] object, class, metaclass... Big picture ?

2011-08-08 Thread Rony G. Flatscher
Hi Jean-Louis, On 08.08.2011 14:40, Jean-Louis Faucher wrote: About ~send, I was focusing on the search order for method selection, and I found the answer in rexxref 4.2.5. There is no reference to metaclass there, so I assume that the methods of a metaclass are not visible from an object.

[Oorexx-devel] Explicitly listed methods, multiple inheritance possible with metaclasses as well (Re: object, class, metaclass... Big picture ?

2011-08-08 Thread Rony G. Flatscher
Hi Jean-Louis, totally overlooked your original questions related to the reference documentations: On 08.08.2011 10:23, Jean-Louis Faucher wrote: I can't find a suitable definition for the ??? below. Extracted from rexxref : 5.1.1 The Object class is the root of the class hierarchy. The

[Oorexx-devel] Question ad segmentation fault: who could be mostlikely the culprit ?

2011-08-08 Thread Rony G. Flatscher
Hi there, While stress-testing a part of the dbus language binding in an area (private DBUS server) there is a chance that I hit problems in libdbus.so itself in that area (as some comments indicate that multi-threading in the server may need more testing). Now from time to time I would get

Re: [Oorexx-devel] Question ad segmentation fault: who could be mostlikely the culprit ?

2011-08-09 Thread Rony G. Flatscher
Hi Moritz, thank you *very* much for your comments, hints and advice, which are/is very helpful! Best regards, ---rony -- uberSVN's rich system and user administration capabilities and model configuration take the

[Oorexx-devel] rxapi abends ...

2011-08-20 Thread Rony G. Flatscher
After porting a dbus language binding for ooRexx to Windows XP and running some testscripts, a situation arises where rxapi abends. The scenario: * ooRexx 4.1.0, 32-bit * the testscript starts a private dbus which creates a server socket and listens to clients (address used by

Re: [Oorexx-devel] rxapi abends ...

2011-08-20 Thread Rony G. Flatscher
2011/8/20 Rony G. Flatscher rony.flatsc...@wu-wien.ac.at mailto:rony.flatsc...@wu-wien.ac.at After porting a dbus language binding for ooRexx to Windows XP and running some testscripts, a situation arises where rxapi abends. The scenario: * ooRexx 4.1.0, 32-bit

Re: [Oorexx-devel] rxapi abends ...

2011-08-20 Thread Rony G. Flatscher
Dear Jean-Louis, On 20.08.2011 16:03, Jean-Louis Faucher wrote: You probably have already all what needed to build several versions of ooRexx. But just in case, I attached files which set environment for 4.1.0 and main (adjust to your own paths). This is a simplified version of the scripts I

Re: [Oorexx-devel] rxapi abends ...

2011-08-21 Thread Rony G. Flatscher
Hi there, AFAICT the exception is created by the Windows version of dbus (when the server gets closed), if using a private dbus server. Will research more in that corner. ---rony On 20.08.2011 14:12, Rony G. Flatscher wrote: After porting a dbus language binding for ooRexx to Windows XP

[Oorexx-devel] %zu and MS compiler ...

2011-08-21 Thread Rony G. Flatscher
Just a warning: since a discussion about the best fprintf-format for size_t values we finally found %zu, which works on the gcc/g++ compilers. In the current project I started out on Ubuntu 64, going to MacOSX and finally arriving at 32-bit Windows using the MS compiler (Microsoft (R) 32-bit

[Oorexx-devel] Announcing the new release of BSF4ooRexx, 2011-08-22

2011-08-22 Thread Rony G. Flatscher
Announcing the new release of BSF4ooRexx, 2011-08-22 After an extensive test period the development team of BSF4ooRexx is proud to announce the general availability (GA) of BSF4ooRexx, version 4.06, 20110822! BSF4ooRexx is a language binding

[Oorexx-devel] Next plans about ooRexx ?

2011-09-10 Thread Rony G. Flatscher
Hi there, in the summer of last year (August 21st) ooRexx 4.1.0 got released. Rick hinted to intend to add try-catch-finally to the language (modelled after NetRexx' implementation?) along with other features (like a Rexx stack trace). In addition there are quite a few request for enhancements

Re: [Oorexx-devel] Next plans about ooRexx ?

2011-09-12 Thread Rony G. Flatscher
wrote: On Sat, Sep 10, 2011 at 3:14 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at mailto:rony.flatsc...@wu-wien.ac.at wrote: Hi Rony, I'm going to skip some of your build up and go straight to the question. So the question is: what are the next plans about ooRexx by the ooRexx

[Oorexx-devel] D-Bus language binding for ooRexx: any Linux users on this list interested in experimenting with it ?

2011-09-12 Thread Rony G. Flatscher
Hi there, as you may have seen in the past from my postings to this list, I started to work on a D-Bus language binding for ooRexx, which now is more or less concluded and enters a testing phase of a few months before announcing and making it available to the public (a student will stress test

Re: [Oorexx-devel] I'm still alive!

2011-10-04 Thread Rony G. Flatscher
Hi Jon, great to hear from you! (Thought already you might have fallen over the edge of the world!) On 04.10.2011 15:32, Sahananda (Jon) Wolfers wrote: I was however prompted to write this note by passing a milestone. After 27 months of on and off preparation I have managed to move all 20

[Oorexx-devel] Fwd: Fwd: Announcing BNF4OOo - Managing Backus-Naur-Forms with OpenOffice

2011-10-24 Thread Rony G. Flatscher
Original Message Subject:Fwd: Announcing BNF4OOo - Managing Backus-Naur-Forms with OpenOffice Date: Mon, 24 Oct 2011 19:53:27 +0200 From: Rony G. Flatscher rony.flatsc...@wu-wien.ac.at To: RexxLA Members mailing list rexxla-memb...@mail.rexxla.org Hi

[Oorexx-devel] ooRexx 3.2 on Windows 7

2011-11-05 Thread Rony G. Flatscher
In a lecture about introducing ooRexx and interfacing with Windows, I have been forced to use ooRexx 3.2, because it allows one to embed ooRexx code in HTML files that get processed by the MS Internet Explorer (DHTML). This way the students learn among other things about markup languages,

Re: [Oorexx-devel] ooRexx 3.2 on Windows 7

2011-11-05 Thread Rony G. Flatscher
is fetched (via its id input) and reversed by Rexx and re-displayed in the empty paragraph with the id output. You can repeat the actions as many times as you wish. On W7, after pressing the push button, MSIE reports a crash. ---rony On 05.11.2011 14:08, Rony G. Flatscher wrote

Re: [Oorexx-devel] ooRexx 3.2 on Windows 7

2011-11-05 Thread Rony G. Flatscher
Hi Mark, On 05.11.2011 16:38, Mark Miesfeld wrote: On Sat, Nov 5, 2011 at 6:08 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at mailto:rony.flatsc...@wu-wien.ac.at wrote: In a lecture about introducing ooRexx and interfacing with Windows, I have been forced to use ooRexx

Re: [Oorexx-devel] ooRexx 3.2 on Windows 7

2011-11-06 Thread Rony G. Flatscher
Mark, On 05.11.2011 22:14, Mark Miesfeld wrote: On Sat, Nov 5, 2011 at 9:01 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at mailto:rony.flatsc...@wu-wien.ac.at wrote: If so, I would be forced to stop using ooRexx for teaching ActiveX (WSH, WSF, WSC, MSIE-programming

Re: [Oorexx-devel] ooRexx 3.2 on Windows 7

2011-11-24 Thread Rony G. Flatscher
would do some magic initialization that later on ooRexx does not need to do or is not expected to do.) ---rony On 05.11.2011 14:08, Rony G. Flatscher wrote: In a lecture about introducing ooRexx and interfacing with Windows, I have been forced to use ooRexx 3.2, because it allows one

Re: [Oorexx-devel] Need 32-bit version of ooRexx 4.1.0 that will run in a x86 64-bit ubuntu 10.04 LTS Linux system

2011-11-25 Thread Rony G. Flatscher
Bill, On 25.11.2011 01:23, Bill Turner, WB4ALM wrote: (By the way, the 64-bit version installs very quickly and without any hassle - If it weren't for the incompatibility between REXXSQL, and REXX 4.1 64-bit I wouldn't have had any trouble) If you used JDBC, you could stick to

Re: [Oorexx-devel] Testing RexxGtk : I have an assert error with test2-1.rex

2011-11-27 Thread Rony G. Flatscher
On 27.11.2011 10:28, Jean-Louis Faucher wrote: After thoughts, I think this part of my previous mail is not so obvious : Obviously, the overwritting should not happen. If declaring CSELF is like doing expose CSELF, then it's normal to have a specific value at each scope. Exposed

[Oorexx-devel] Question ad rev. 7391 (sandbox/jlf)

2011-12-20 Thread Rony G. Flatscher
Bonsoir Jean-Louis, looking through the commits I stumbled over your commit to rev. 7391 applied to your sandbox version of ooRexx, giving the comment: Revision: 7391 http://oorexx.svn.sourceforge.net/oorexx/?rev=7391view=rev Author: jfaucher Date: 2011-12-19

Re: [Oorexx-devel] Question ad rev. 7391 (sandbox/jlf)

2011-12-21 Thread Rony G. Flatscher
Bonjour Jean-Louis, On 20.12.2011 22:51, Jean-Louis Faucher wrote: Guten abend Rony Does this comment mean that your sandbox version of ooRexx is fully Unicode-enabled already? no...I did not work on Unicode since several months. But since uft-8 is compatible with ascii, it's

[Oorexx-devel] Ad experimental ooRexx ... (Re: Question ad rev. 7391 (sandbox/jlf)

2011-12-27 Thread Rony G. Flatscher
Dear Jean-Louis, On 27.12.2011 01:15, Jean-Louis Faucher wrote: The sandbox binaries for MacOsX and Win32 are available. http://dl.dropbox.com/u/20049088/oorexx/sandbox/index.html thank you *very* much for making these available for us! Skimming over your readme.txt

[Oorexx-devel] Questions ad extension-mechanism ... (Re: Ad experimental ooRexx ... (Re: Question ad rev. 7391 (sandbox/jlf)

2011-12-28 Thread Rony G. Flatscher
Bonjour Jean-Louis, experimenting with your (great and colorized!) oorexxshell-replacement for rexxtry.rex, I saw that you have been applying your new extension mechanism in some of the Rexx pakcages that you automatically load, e.g. extension/extension.cls. A few questions: * How stable is

[Oorexx-devel] Question at .CoRoutine ... (Re: Ad experimental ooRexx ... (Re: Question ad rev. 7391 (sandbox/jlf)

2011-12-28 Thread Rony G. Flatscher
Bonjour Jean-Louis, maybe a stupid question: what is the purpose of a .CoRoutine? How does that differ from having Rexx methods execute concurrently? What does one need to know to decide whether to use a CoRoutine or not? TIA, ---rony

[Oorexx-devel] Question ad closures... (Re: Ad experimental ooRexx ... (Re: Question ad rev. 7391 (sandbox/jlf)

2011-12-28 Thread Rony G. Flatscher
Bonjour Jean-Louis: just starting to look into your closure implementation. It looks as if one is able to define any Rexx code as a literal by using curly brackets around them. These literals can then be run/executed later. Do you have a brief problem, example where one can see what is needed

Re: [Oorexx-devel] Question ad closures... (Re: Ad experimental ooRexx ... (Re: Question ad rev. 7391 (sandbox/jlf)

2011-12-30 Thread Rony G. Flatscher
Bonjour Jean-Louis, thank you very much for all your answers, and also (especailly!) for the pointers to further information about CoRoutines! Maybe others have also questions to the different concepts you have implemented, hence I would keep myself a little bit quiet to not dominate these

[Oorexx-devel] Questions/comments ad blocks, coactivity and closures, # 2... (Re: Ad experimental ooRexx ...

2012-01-02 Thread Rony G. Flatscher
Bonsoir Jean-Louis: first, *many thanks* for your helpful comments and explanations ! [One comment ad abbreviations: maybe it would be good for mere mortal Rexx programmers ;) to spell out keywords in full and not abbreviate them (the same for values for attributes like 'kind' in RexxBlock).

Re: [Oorexx-devel] Questions/comments ad blocks, coactivity and closures, # 2... (Re: Ad experimental ooRexx ...

2012-01-03 Thread Rony G. Flatscher
Bonjour Jean-Louis thank you very much indeed for your answers and hints! On 03.01.2012 09:51, Jean-Louis Faucher wrote: Guten tag Rony [One comment ad abbreviations: maybe it would be good for mere mortal Rexx programmers ;) to spell out keywords in full and not abbreviate them

[Oorexx-devel] Some comments/impressions/questions ... (Re: Ad experimental ooRexx ...

2012-01-03 Thread Rony G. Flatscher
Bonjour Jean-Louis, not having referred to some of the experimental features of your sandbox version of ooRexx the (wrong) impression might be evoked, that they are not interesting, hence an attempt to briefly comment my personal impressions: * ooRexxShell: that is a *great* rexxtry.rex

[Oorexx-devel] Ad Trampoline, Partial arguments, higher order functions, pipeline (Re: Ad experimental ooRexx ...

2012-01-03 Thread Rony G. Flatscher
Bonsoir Jean-Louis, having read and experimented a little bit a few remarks and questions: * Trampoline: that's really cool as recursive functions become computable that otherwise would not be able to run due to not enough control stack space as your factorial example nicely

Re: [Oorexx-devel] Some comments/impressions/questions ... (Re: Ad experimental ooRexx ...

2012-01-04 Thread Rony G. Flatscher
On 04.01.2012 10:04, Jean-Louis Faucher wrote: * Parser : Refinement of tokens 'subclass' attribute: unfortunately, I was not able to get to see this. I defined (Windows) RXTRACE_PARSING=ON, but unfortunately it seems that no dumping of the clauses and tokens take

[Oorexx-devel] Ad implicit return in blocks (Re: Ad Trampoline, Partial arguments, higher order functions, pipeline (Re: Ad experimental ooRexx ...

2012-01-06 Thread Rony G. Flatscher
* expressions implicitly returning a value: if a RexxBlock only consists of an expression, then the result of the expression will be returned, e.g. 12~times({arg(1)/2}) which is the same as 12~times({return arg(1)/2}). This is probably intentional, still thinking whether I like

[Oorexx-devel] ad 1000000! ( (Re: Ad experimental ooRexx ...

2012-01-06 Thread Rony G. Flatscher
Looking at the trampoline feature, I could not resist and experiment with employing it and have the faculty of one million calculated using a precision of ten million digits! Running on an older laptop (T7600 @ 2.33 GHz, two CPUs, 2 GB RAM, Windows XP SP3): took one day, 19 hrs and 13 minutes.

[Oorexx-devel] Ad reduce ... (Re: Ad experimental ooRexx ...

2012-01-06 Thread Rony G. Flatscher
Hi there, just wanted to share some findings that maybe helpful for others. RexxBlocks (executable Rexx code that can be also stated as literals by defining the code enclosed with curly brackets) get by means of extensions the methods reduce and map. reduce iterates over a collection,

Re: [Oorexx-devel] Ad reduce ... (Re: Ad experimental ooRexx ...

2012-01-06 Thread Rony G. Flatscher
On 06.01.2012 18:16, Rony G. Flatscher wrote: just wanted to share some findings that maybe helpful for others. RexxBlocks (executable Rexx code that can be also stated as literals by defining the code enclosed with curly brackets) get by means of extensions the methods reduce and map

Re: [Oorexx-devel] Ad implicit return in blocks (Re: Ad Trampoline, Partial arguments, higher order functions, pipeline (Re: Ad experimental ooRexx ...

2012-01-06 Thread Rony G. Flatscher
On 06.01.2012 17:15, Rony G. Flatscher wrote: * expressions implicitly returning a value: if a RexxBlock only consists of an expression, then the result of the expression will be returned, e.g. 12~times({arg(1)/2}) which is the same as 12~times({return arg(1)/2

[Oorexx-devel] A few questions ad Rexx Exit Handlers ....

2012-01-23 Thread Rony G. Flatscher
Hi there, while studying the interpreter instance options more closely there would be a few questions about them: * What is the difference between LOAD_REQUIRED_LIBRARY and REGISTER_LIBRARY? When would one use the one over the other? (Or why would one want to use REGISTER_LIBRARY

Re: [Oorexx-devel] A few questions ad Rexx Exit Handlers ....

2012-01-23 Thread Rony G. Flatscher
Rick, thank you very much for your helpful information! On 23.01.2012 17:28, Rick McGuire wrote: ... cut ... Can one rely on the RXTER exit handler be invoked immediately, when terminating the Rexx-interpreter using the context-Terminate(); to terminate a Rexx interpreter instance ? (This

Re: [Oorexx-devel] A few questions ad Rexx Exit Handlers ....

2012-01-23 Thread Rony G. Flatscher
On 23.01.2012 19:41, Rick McGuire wrote: ... cut ... When would RXINI/RXTER called then, if also during the lifetime of a Rexx interpreter instance ? Every time a Rexx program is run, including calls to external routines. Generally, these exits are usually only used to set variables in the

[Oorexx-devel] A question ad RXCMD Exit vs. Command Handler Interface

2012-01-29 Thread Rony G. Flatscher
In rexxpg.pdf chapter 9.12.2.4. RXCMD documents: Processes calls to subcommand handlers. and explains the parameter block structure. This structure also includes information related to a DLL name and indicates whether the handler is implemented instead in an EXE. Chapter 9.13. Command Handler

[Oorexx-devel] RXSIO and SysGetKey()

2012-01-29 Thread Rony G. Flatscher
Is it possible to intercept the Rexx utility function SysGetKey() with a RXSIO exit handler, subfunction RXSIOTRD or RXSIODTR? TIA, ---rony -- Try before you buy = See our experts in action! The most comprehensive

[Oorexx-devel] Just curious about missing exit numbers ...

2012-02-04 Thread Rony G. Flatscher
While going through the exit numbers as defined in rexxapidefs.h of ooRexx as constants in the section System Exit function and sub-function definitions it is interesting to note, that the numbers 1 and 6 are not used for any exits. Just curious why this is the case? TIA, ---rony

Re: [Oorexx-devel] Just curious about missing exit numbers ...

2012-02-05 Thread Rony G. Flatscher
... On the mainframes, 5 was used for a memory exit that was never implemented for non-mainframe environments. Not sure why 1 was skipped. Rick On Sat, Feb 4, 2012 at 1:49 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: While going through the exit numbers as defined in rexxapidefs.h of ooRexx

[Oorexx-devel] Question ad using RexxExitContext in exit and command handlers

2012-02-08 Thread Rony G. Flatscher
Rexx exit handlers and command handlers receive a RexxExitContext. Question: is it o.k. for both handler types to allow using the RexxExitContext for invoking the following native API methods: RaiseCondition (...) RaiseException (...) RaiseException0 (...) RaiseException1

[Oorexx-devel] Another AttachThread() needed ?

2012-02-08 Thread Rony G. Flatscher
Many thanks for the helpful answers! --- Given the following flow of control: (1) C++ (either an exit or a command handler): encodes RexxExitContext and passes it in the same thread T1 to Java (2) Java calls on the same thread T1 as (1) into C++ passing the received encoded

[Oorexx-devel] Observations in native code on ObjectToString(), ObjectToStringValue vs. sending the message STRING ...

2012-02-09 Thread Rony G. Flatscher
While debugging new code I stumbled over the following observation: 1. fetching a RexxObjectPtr from .local with: bsfClz=rtc-SendMessage0(rtc-GetLocalEnvironment(), BSF); 2. getting the string representation (for debugging) of that ooRexx class object works with:

Re: [Oorexx-devel] Observations in native code on ObjectToString(), ObjectToStringValue vs. sending the message STRING ...

2012-02-09 Thread Rony G. Flatscher
On 09.02.2012 13:22, Rick McGuire wrote: Open a bug report and provide a means of reproducing the crashes if you'd like this to be looked at. O.K., will do as advised, but it may take a some time as my current setup would not be easily reproducible (too many - not automated - manual steps at

Re: [Oorexx-devel] Observations in native code on ObjectToString(), ObjectToStringValue vs. sending the message STRING ...

2012-02-09 Thread Rony G. Flatscher
On 09.02.2012 13:52, Rick McGuire wrote: On Thu, Feb 9, 2012 at 7:13 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: While debugging new code I stumbled over the following observation: fetching a RexxObjectPtr from .local with: bsfClz=rtc-SendMessage0(rtc-GetLocalEnvironment

[Oorexx-devel] Question: when to check and react upon error flags in exit handlers ...

2012-02-10 Thread Rony G. Flatscher
Some Rexx system exits have flags in their parmBlocks which should be set by the handlers. RXOFNC, RXEXF and RXFNC have a structure of the following named flags: rxfferr, rxffnfnd, and rxffsub. The question would be: upon return from the exit handler, can these flags be safely explored if the

Re: [Oorexx-devel] Question: when to check and react upon error flags in exit handlers ...

2012-02-10 Thread Rony G. Flatscher
Sorry, a bad mistype in the question! On 10.02.2012 17:00, Rony G. Flatscher wrote: Some Rexx system exits have flags in their parmBlocks which should be set by the handlers. RXOFNC, RXEXF and RXFNC have a structure of the following named flags: rxfferr, rxffnfnd, and rxffsub

Re: [Oorexx-devel] Question: when to check and react upon error flags in exit handlers ...

2012-02-11 Thread Rony G. Flatscher
of RXEXIT_HANDLED? ---rony On Fri, Feb 10, 2012 at 11:03 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Sorry, a bad mistype in the question! On 10.02.2012 17:00, Rony G. Flatscher wrote: Some Rexx system exits have flags in their parmBlocks which should be set by the handlers

Re: [Oorexx-devel] Question: when to check and react upon error flags in exit handlers ...

2012-02-11 Thread Rony G. Flatscher
Sorry, pressed too fast the reply button! After reading 9.12.1.1 Exit Return Codes it has become clear that RXEXIT_RAISE_ERROR is a fatal error in the handler! Sorry to have wasted time and bandwidth! ---rony --

Re: [Oorexx-devel] Question: when to check and react upon error flags in exit handlers ...

2012-02-11 Thread Rony G. Flatscher
On 11.02.2012 14:36, Rick McGuire wrote: On Sat, Feb 11, 2012 at 8:33 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: Am 10.02.2012 um 23:34 schrieb Rick McGuire object.r...@gmail.com: I'm really not sure what you're asking here. The rxffsub flag is an input to the exit

[Oorexx-devel] Questions ad RXINI and RXTER exits

2012-02-19 Thread Rony G. Flatscher
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.

Re: [Oorexx-devel] Questions ad RXINI and RXTER exits

2012-02-19 Thread Rony G. Flatscher
On 19.02.2012 15:16, Rick McGuire wrote: On Sun, Feb 19, 2012 at 8:48 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at 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

[Oorexx-devel] Thanks, and a (final) question about RXINI/RXTER invocations (Re: How to get at the routine's name from within an exit ? (Re: Questions ad RXINI and RXTER exits

2012-02-19 Thread Rony G. Flatscher
On 19.02.2012 18:31, Rick McGuire wrote: On Sun, Feb 19, 2012 at 12:23 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: After researching a while (starting out with .context) I ended up in the native API to look for the name of the current routine for which the exit runs, i.e

Re: [Oorexx-devel] Thanks, and a (final) question about RXINI/RXTER invocations (Re: How to get at the routine's name from within an exit ? (Re: Questions ad RXINI and RXTER exits

2012-02-19 Thread Rony G. Flatscher
On 19.02.2012 18:56, Rick McGuire wrote: On Sun, Feb 19, 2012 at 12:53 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: On 19.02.2012 18:31, Rick McGuire wrote: On Sun, Feb 19, 2012 at 12:23 PM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: After researching a while

[Oorexx-devel] Questions ad RXMSQ exit

2012-02-20 Thread Rony G. Flatscher
Exploring the RXMSQ exit the following questions have come up: * subfunction RXMSQPSH (pushing the supplied string) has a rxfmlifo flag, which according to the documentation is set TRUE for LIFO and FALSE for FIFO; in my tests this flag is always set to TRUE, independent of using the

Re: [Oorexx-devel] Questions ad RXMSQ exit

2012-02-20 Thread Rony G. Flatscher
subfunction RXMSQNAME is invoked for the BIF RxQueue(set, newName). Independent of returning REXX_EXIT_NOT_HANDLED or REXX_EXIT_HANDLED, the name change is carried out, on the Rexx side the old queue name is returned (initially SESSION). Is this o.k.? Not sure I understand what you're asking

[Oorexx-devel] RXOFNC/RXEXF-related question

2012-02-21 Thread Rony G. Flatscher
The RXOFNC and RXEXF exits are the oo exits for which the PARM-block defines RexxObjectPtr et.al. types. As I am getting a very strange behaviour in both exits when processing the argument array it may be the case that I am not iterating correctly over the array, so here is first the

[Oorexx-devel] RXOFNC/RXEXF vs. RXFNC when setting flags and returning

2012-02-21 Thread Rony G. Flatscher
The classic Rexx exit RXFNC will raise a Rexx condition, if the handler either sets the rxfferr (invaliid call to routine) or the rxffnfnd (function not found) flag and returns with RXEXIT_HANDLED. Doing the same in the ooRexx-supported RXOFNC/RXEXF handlers does not raise the Rexx condition

Re: [Oorexx-devel] RXOFNC/RXEXF vs. RXFNC when setting flags and returning

2012-02-21 Thread Rony G. Flatscher
On 21.02.2012 20:48, Rony G. Flatscher wrote: The classic Rexx exit RXFNC will raise a Rexx condition, if the handler either sets the rxfferr (invaliid call to routine) or the rxffnfnd (function not found) flag and returns with RXEXIT_HANDLED. Doing the same in the ooRexx-supported

Re: [Oorexx-devel] Announcing ooRexx 4.1.1 Beta 1

2012-02-21 Thread Rony G. Flatscher
On 21.02.2012 21:05, Mark Miesfeld wrote: ... cut ... A certificate for RexxLA would be an ideal solution. The certificate would work for both products and would work for both a NSIS installer or a MSI installer, and I'm pretty sure for any product that produces a Windows installation

Re: [Oorexx-devel] RXOFNC/RXEXF-related question

2012-02-21 Thread Rony G. Flatscher
On 21.02.2012 21:49, Rick McGuire wrote: I take that back, I do see something obviously wrong. Rexx arrays are 1-based, not 0-based, so your put call needs to be specifying an index of i+1. Aaargh, thank you *very* much, indeed ! ---rony P.S.: I have been chasing that down for hours and

[Oorexx-devel] XML editor, maybe interesting for ooRexx docs ?

2012-02-21 Thread Rony G. Flatscher
In the AOO (Apache OpenOffice, an incubator project) developer group there was some discussion about documentation and help editing with pointers to DITA http://dita.xml.org/standard and a pointer to a free XML editor that is able to process all kinds of XML DTD/XSD, including Bookmaster was

Re: [Oorexx-devel] Questions ad RXINI and RXTER exits

2012-02-22 Thread Rony G. Flatscher
On 19.02.2012 15:16, Rick McGuire wrote: On Sun, Feb 19, 2012 at 8:48 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at 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

Re: [Oorexx-devel] Observations in native code on ObjectToString(), ObjectToStringValue vs. sending the message STRING ...

2012-02-22 Thread Rony G. Flatscher
While looking into this in order to create an easy to use test case, employing now ooRexx 4.1.1 beta, the problem with ObjectToStringValue() cannot be recreated anymore. ---rony On 09.02.2012 13:13, Rony G. Flatscher wrote: While debugging new code I stumbled over the following observation

[Oorexx-devel] 4.1.1 beta docs do not reflect actual version and date

2012-02-22 Thread Rony G. Flatscher
Looking at the ooRexx documentation (title page) for the 4.1.1 beta shows: Version 4.1.0 Edition December 2010 ---rony -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of

Re: [Oorexx-devel] Questions ad RXINI and RXTER exits

2012-02-23 Thread Rony G. Flatscher
On 22.02.2012 10:47, Rony G. Flatscher wrote: On 19.02.2012 15:16, Rick McGuire wrote: On Sun, Feb 19, 2012 at 8:48 AM, Rony G. Flatscher rony.flatsc...@wu-wien.ac.at wrote: After having implemented and successfully tested the RXSIO, RXNOVAL and RXVALUE exits (i.e. exit handlers in Java

Re: [Oorexx-devel] RXOFNC/RXEXF-related question

2012-02-23 Thread Rony G. Flatscher
On 21.02.2012 21:37, Rick McGuire wrote: I don't see anthing obviously wrong here. Provide a sample program so I can recreate this, and I'll take a look at it. Also, just for the record for others who read this thread and are interested in the final result: RXOFNC/RXEXF setting of flags works

[Oorexx-devel] Question ad using GetMethodPackage() and GetRoutinePackage() from within an exit

2012-02-25 Thread Rony G. Flatscher
Studying the rexxpg.pdf documentation for GetMethodPackage() and GetRoutinePackage() both APIs are availabe in an exit. Would both APIs be functional and return the package of the code for which the exit gets invoked? TIA, ---rony

[Oorexx-devel] What's the correct case of the Linux-related name of the ooRexx package ?

2012-02-25 Thread Rony G. Flatscher
Having a bug report on BSF4ooRexx https://sourceforge.net/tracker/?func=detailatid=1660873aid=3434226group_id=400586, where the reporter points out that the rpm package name of the ooRexx package is not oorexx, but ooRexx. Just to make sure that the dependeny information is given correctly for

Re: [Oorexx-devel] What's the correct case of the Linux-related name of the ooRexx package ?

2012-02-25 Thread Rony G. Flatscher
On 25.02.2012 19:32, Mark Miesfeld wrote: It is, and has always been, ooRexx. Thank you very much Mark! ---rony (My confusion has come from Ubuntu's software center which shows the name of ooRexx all in lowercase.)

<    1   2   3   4   5   6   7   8   9   10   >