The initial draft of documentation for a prototype "StructuredList" API
for NetRexx has been completed.
The documentation is online here:
http://kermitkiser.com/NetRexx/structuredlist/NetRexx%20List%20Processing%20Feature.htmlAlthough the draft documentation is defined abstractly and there is a
"library module" implementation available for anyone interested, the
practical details of usage are somewhat cumbersome due to the frequent
manual conversions required since NetRexx has no idea how to auto
convert Rexx data objects to an arbitrary subclass. For that reason and
others I expect this API to eventually be part of the basic Rexx data
class, thus eliminating casting/conversion issues. Because of that and
also because some of us need a hands-on evaluation to research and
validate complex concepts, I have implemented this API in the Rexx class
of the experimental branch of NetRexx which can be downloaded from here:
http://kenai.com/projects/netrexx-plus/downloads/directory/Experimental%20NetRexx%20BuildThis note is a request for test feedback for the prototype code and for
suggestions to refine the API.
Here is a sample program using the simple predefined "WORDLIST" format:
---------------------------------------------------------------------------------------
wl='a list of words separated by blanks where "a quoted string is a
phrase treated as a single word" '
swl=wl.buildlist('WORDLIST') -- create a structured wordlist
-- display the list elements:
loop i=1 to swl['elements']
say swl[i]
end
----------------------------------------------------------------------------------------
-------------- sample output:
---------------------------------------------------
a
list
of
words
separated
by
blanks
where
a quoted string is a phrase treated as a single word
------------------------------------------------------------------------------------------
-- Kermit
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive :
http://ibm-netrexx.215625.n3.nabble.com/