Hi Michael,

not knowing Object Pascal, I am not sure whether an Apache BSF (Bean Scripting Framework) engine exists for it or not. If they have a BSF engine, then you should be able to use it via BSF4ooRexx850. As such an engine would be an interface between Java and Object Pascal, you need to adjust the environment for Java such that Java can find the Object Pascal BSF engine. But first make sure, that this BSF engine for Object Pascal exists and is operable stand-alone.

It seems from your information that an Object Pascal REXXSAA interface exists, then it should work with ooRexx, but you would need to try it out.

Ad the new ooRexx C++ interface: this is meant if you were to write a new native interface between Object Pascal and ooRexx.

Good luck with your project and let us know how it goes!

HTH

---rony


On 14.07.2026 14:41, Michael Lueck wrote:
Greetings Rony,


Rony G. Flatscher wrote:
On 13.07.2026 16:16, Michael Lueck wrote:
I am seeking feedback / input on integrating ooRexx with Object Pascal via Lazarus from Free Pascal.

Without BSF available for Object Pascal, would that mean the integration would only be via the traditional 2.3.3. The RexxStart Function? (At least I have not heard around the Object Pascal community talk of integration with BSF. I will specifically check.)

If that is the level of integration possible, then knowing that, I would next seek to learn how to code Object Pascal to leverage a C/C++ API.

You can use the classic SAA interface, however you can use the much more powerful new ooRexx APIs, which I would strongly suggest you to take advantage of.


hhhmmmm..... so you are making it sound like there are actually three 
interfaces...

1) Classic SAA
2) BSF4ooRexx
3) More Powerful new ooRexx API's


Skim over  the book "rexxapi.pdf" ("Open Object Rexx, Application Programming Interfaces") and then check out all the samples in "samples\api".

Good luck for the project!


Thank you.

I found when I next researched how to do it from the Lazarus / Open Pascal side, there already is a Classic SAA interface developed! :-) Huge bonus!

https://wiki.freepascal.org/REXX

REXX

REXX is a programming language originally developed by IBM and over time included in all IBM operating systems (e.g. OS/2, AIX and PC DOS). In addition to this, various IBM and non-IBM implementations have been made available for most operating systems/environments (including free implementations for Win32/Win64, Linux, Mac OS X, Solaris and many others - e.g. Regina, Open Object Rexx). This interface unit makes it possible to inter-mix code written in Pascal with REXX.


Here is the readme from the extension available:

Hi/2.

This is REXX SAA interface. Nothing specific for this library. Only one thing:
This interface can be easely adapted to be used also for other OSes, not only
for OS/2. Look at Regina REXX for more info. As I know, early Regina REXX was
distributed with Win32 SDK.

About Amiga REXX. According to REXX unit source from FPC CVS tree Amiga rexx
not seems to be SAA compatible. Most portable solution is Regina REXX because
Regina supports SAA API.

Regina REXX ports available for OS/2, Win32, Unix, Amiga, QNX, BeOS & DOS.

Documentation
-------------

1. OS/2 Procedures Language 2/REXX online book
2. OS/2 Procedures Language 2/REXX Reference
3. OS/2 Procedures Language 2/REXX User Guide

Other books also available (for example, Regina REXX contains good
documentation)

wbr
Yuri



So what more beyond the Classic SAA is available now without having to go all the way to full BSF integration?

I am thankful,
Michael


_______


_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to