Good suggestion makes it less messy as you mentioned, thanks again. Ruurd
Thanks Rick. Now in order to keep processing the rest of the methods I can think only of this: #!/usr/bin/env rexx signal on any name syntax rexxInfoInstance = .RexxInfo rexxInfoInstanceMethods = rexxInfoInstance~class~methods(rexxInfoInstance~class)~allindexes~sort i = 1 -- i initially 1, after possible signal will be set by the syntax signal processing again: do m=i to rexxInfoInstanceMethods~items method = rexxInfoInstanceMethods[m] say ".RexxInfo instance method" method ":" rexxInfoInstance~send(method)...
I was trying to make a demo of displaying the results of invoking all .RexxInfo methods with the l following code: tryRexxInfo.rex #!/usr/bin/env rexx rexxInfoInstance = .RexxInfo rexxInfoInstanceMethods = rexxInfoInstance~class~methods(rexxInfoInstance~class)~allindexes~sort say rexxInfoInstanceMethods do method over rexxInfoInstanceMethods say ".RexxInfo instance method" method":" rexxInfoInstance~send(method) end yielding the following result on the console: ruurd@Paradigit2:~/Rexx$ rexx tryRexxInfo.rex...
I was trying to make a demo of displaying the results of invoking all .RexxInfo methods with the l following code: tryRexxInfo.rex #!/usr/bin/env rexx rexxInfoInstance = .RexxInfo rexxInfoInstanceMethods = rexxInfoInstance~class~methods(rexxInfoInstance~class)~allindexes~sort say rexxInfoInstanceMethods do method over rexxInfoInstanceMethods say ".RexxInfo instance method" method":" rexxInfoInstance~send(method) end yielding the following result on the console: ruurd@Paradigit2:~/Rexx$ rexx tryRexxInfo.rex...
Hi again, Thus if one wants to override an superclass INIT, one must define a class NEW method, is that what you are saying? That is not true for (I think all) other collections with an optional SIZE argument? Seems to me that the way a multidimensional Array can be defined causes the problem and it could be solved by allowing arguments after a not defined first argument (which would create a 1 dimensional array) and pass them on to the subclass INIT. HTH (a little joke here) Ruurd P.S. For multidimension...
Hi again, Thus if one wants to override an superclass INIT, one must define a class NEW method, is that what you are saying? That is not true for (I think all) other collections with an optional SIZE argument? Seems to me that the way a multidimensional Array can be defined causes the problem and it could be solved by allowing arguments after a not defined first argument (which would create a 1 dimensional array) and pass them on to the subclass INIT. HTH (a little joke here) Ruurd On 11/5/25 11:58,...
Hi Rony, So how does what you say about NEW agree with: rexxref: 4.2.5 Default search order for methods This search order places methods of a class before methods of its superclasses so that a class can supplement or override inherited methods. and rexxref: 4.2.9. Initialization Any object requiring initialization at creation time must define an INIT method. If this method is defined, the class object runs the INIT method after the object is created. If an object has more than one INIT method (for...
Ok, thanks for your investigation, I'll wait and see. Ruurd On 10/31/25 10:06, jfaucher wrote: So I still think it should be fixed or the docs should be made more specific. I agree but I can't tell what is the preference of the ooRexx team. In the meantime, this code will work: |::classtypedArraypublicsubclassArray ::attributetype ::methodnewclass say"Method 'new'' for typedArray instance" usestrictargtype if"RTW"~pos(type[1]~upper)==0 thenraisesyntax93.914array(1,"R(ony),T(im),W(ill)",type) / superclass...
Well, the code shows that INIT is not called at all for the subclass instance. The subclass is responsible for calling the INIT for the superclass if necessary, via an INIT:SUPER call or via the FORWARD keyword . So I still think it should be fixed or the docs should be made more specific.
One more try to convince the behaviour is a (in my opinion serious) bug: #!/usr/bin/env rexx list = .myList~new("Mike") array = .myArray~new('Rick') ::class myList public subclass List ::method init say arg(1,A) self~init:super(10) ::class myArray public subclass Array ::method init say arg(1,A) self~init:super(10) If you run this code , you will notice that the init for myArray is not called at all, while it is the first class in the in the order of classes and it is not allowed to call the superclass...
I bypassed the problem by using a List instead of an Array, curious what the proper implementation is. Ruurd Idenburg
Sublassing Array does not seem to call subclass init method before checking arguments
Go to sourceforge.net, search for oorexx , go to the wike tab an you'll find how to do it. I just did it this week for my Android smart phone and it worked no problems. 27 okt 2024 19:12:27 Larry Schacher larry-s@users.sourceforge.net: Can someone provide id10t instructions for installing ooRexx (beta 5.1) on Arch Linux (manjaro)? I am just trying Arch for the first time and am used to .rpm and .deb. Thank you in advance! Larry Instructions for installing ooRexx on Arch Linux[https://sourceforge.net/p/oorexx/discussion/408478/thread/48d7f9c1eb/?limit=25#a19f]...
Sorry, I misread your post, mine was for an arm (aarch) install. Scusi mi. 27 okt 2024 19:12:27 Larry Schacher larry-s@users.sourceforge.net: Can someone provide id10t instructions for installing ooRexx (beta 5.1) on Arch Linux (manjaro)? I am just trying Arch for the first time and am used to .rpm and .deb. Thank you in advance! Larry Instructions for installing ooRexx on Arch Linux[https://sourceforge.net/p/oorexx/discussion/408478/thread/48d7f9c1eb/?limit=25#a19f] Sent from sourceforge.net because...
OORexxDoc crashes when use strict arg without any arguments is used
Hi, I understand Jan wants this to run on OS2 and I am not familiar with the OS2 ooRexx but: Why wouldn't you subclass the polyshape class and do something like this untested variant instead of asking your stuff to be incorporated: ::class myPolyShape public subclass polyShape ::method prepare Use Arg polyLine, nofixpoly, xyz, dbug If polyLine = 'POLYLINE' Then Return .True If dbug = .True Then Call Trace '?i' self~point = .Array~new If polyLine~objectName = 'an Array' Then -- I would use polyLine~class~id...
Oops, line 47 seems not to be complete, following "apikey" the following is needed: &query="query"'" Ruurd
I happen to have an example of Jon's approach with a small difference. I am using "curl" and "address system with" from oorexx version 5: See next post !!!!!
I happen to have an example of Jon's approach with a small difference. I am using "curl" and "address system with" from oorexx version 5: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75#!/usr/bin/env rexx /* ---------------------------------------------------------------- */ /* An example of using a REST(full) API with OORexx */ /*...
I happen to have an example of Jon's approach with a small difference. I am using "curl" and "address system with" from oorexx version 5: ========================================================================== !/usr/bin/env rexx / ---------------------------------------------------------------- / / An example of using a REST(full) API with OORexx / / / / A simple excercise to show the ease with which TMDB (The Movie / / Data Base) can be accessed. / / / / Retrieves information for a movie/tv series/etc...
Possible hashbang line problem
That is Ok Erich, just wanted to make sure that the problem was recognized, Appreciate all your efforts.
And another attachment (what a crummy system this sourceforge
Attaxhments added
Lately I have seen a number of people active on several different (oo)Rexx podia that were using Linux. I'm running a ooRexx script as a systemd background(windowless) daemon that notifies me roughy every 2 hours to take a break. The following was needed: The Rexx code to keep the timing correct which is: notify_relax.rex The definition of the daemon service for systemd which is: notify_relax.service Store notify_relax.rex in a convenient place Store the notify_relax.service file in your .config/systemd/user...
In fact the change was in commit R11516 on 2018/11/06. So if the socket class isn't checking the reurn anymore, why would the streamsocket class have to do it still?
Problem can be bypassed by subclassing and using something similar as follows in the 'init' method ::method init forward class(super) continue self~rcvbuf = .mutablebuffer~new(, self~bufsize)
.StreamSocket~new fails on Linux (Ubuntu and Mint at least)
StreamSocket.cls uses '0D0A'x instead of .endofline
Ok Thanks, will try it out soon. Gr, Ruurd On 5/9/21 8:06 PM, aseik wrote: Hello, I fixed this issue. Please see version 2.0.3 of the plugin BR [oorexxplugin:#10] https://sourceforge.net/p/bsf4oorexx/oorexxplugin/10/ Creating oorexxdoc documentation fails in hang situation Status: open Milestone: 1.0 Created: Wed Apr 28, 2021 12:55 PM UTC by Ruurd Idenburg Last Updated: Thu Apr 29, 2021 06:49 PM UTC Owner: nobody Trying to create oorexxdoc documentation fails with a hang situation with the following...
The problem occurred with 2.0.2 GA not with release 1 GA.
Creating oorexxdoc documentation fails in hang situation
I've been busy at irregular intervals trying to find my way in the BSF4ooRexx/Java maze. I came across this nicely (javadoc) documented maptile producing/vieiwng piece of code: https://github.com/msteiger/jxmapviewer2 and decided to try to control one of the samples with the help of bsf4ooRexx. So attached you will find the only pieces (I think) you need to be able to run the sample under Windows or Linux (MacOSX might need a small change perhaps to the invoking shell command). The code shows the...
Hi PO I cannot append the the ticket page on sourceforge for some reason. I have not found any reason why GraphHopper would want to use Java 6 on Mac OS. In case you have solved that problem before trying to run my very simple script( which just tries to use the GraphHopper routing engine to rretrieve textual turn directions ) you should take care of the following things: 1 GraphHopper uses Open Street Map files for its routing engine, so my script needs thos as well and nobody else but has those...
Oops didn't see Rony's response in time, yeah let's move. Ruurd
Hi PO, I'm running Linux Mint19.3 (Ubuntu 18.04): ruurd@Paradigit2:~/Rexx$ java -version openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing) ruurd@Paradigit2:~/Rexx$ uname -a Linux Paradigit2 5.3.0-59-generic #53~18.04.1-Ubuntu SMP Thu Jun 4 14:58:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Maybe GraphHopper requires Java 6 on MacOS, but certainly not on...
Attached a first "proof of concept" to myself for bsf4ooRexx If one is interested in trying this, one should download the GraphHopper jar (graphhopper-web-1.0.jar) from: https://graphhopper.com/public/releases/graphhopper-web-1.0.jar and add the jar file to the CLASSPATH One should be able to invoke the attached rexx with 1 argument a country name in lowercase(e.g. netherlands or austria) for any other country one should adapt the "from" and "to" latitude/longitude pairs to specify locations within...
Like /.../ and -- ?
My intention was a to have a directive that has no function (though the title doesn't...
Rick, what about PrimitiveClasses.xml? Should that be cleaned up as well?
genmsgs.bat and genclass.bat missing in main trunk
Well, a night's sleep convinced me that alternative 1 is the one I would like: 1....
On 22-4-2015 19:01, Rick McGuire wrote: Patch(es) in a coming episode. Further step...
Had some other things to do. @erich, the patch is/are public itthey is/are attached,...
Ok, thanks for the reaction Rick, I'll see if I can improve on it. What do you think...
see rfe 664 for a some patch files to apply
A noop ::end directive
An noop ::end directive
CMakeLists.txt not in agrrement with CMake-build-readme.txt
a patch file for some improvements (I think)
Oliver, RexxLiterate.rex IS the program together with all *.cls files. According...
Ok, sounds good!!
oorexxdoc 4.3.3 oorexxdoc.css line 261 has erroneous doublequote(")
oorexdoc 4.3.3 does not create links for methods (e.g. @see #methodName)
4.3.3 return values not correct
Wesley, I think rexxc does not compile rexx source to an Windows executable program;...
Forget this one, made a new ticket for 4.2.0
socket.cls select method
socket.cls select method