I have the code ready to go into the sandbox, but it appears sourceforge is
having problems. Once they clear up the issues, I can commit the changes.
The more I think about it, the more I can remember some of the issues that came
up.
With stems the structure is freely defined. Using arrays and directories gives
me an insight into the structure I should recreate in JSON. The rules for what
is allowed to be put in the indexes were easier to translate. Stems were harder
because you had no way to know what kind of structure you were dealing with
without inspecting all of the tails. This was one of the reasons I did not try
to support stems. I did speak to David Ruggles at the time about how to handle
stems and he suggested that what he would do is check for tails ending with
".0" (to be clear this would mean that you would assume you have a JSON array
which is similar to an ooRexx array, otherwise it would be assumed that you
have a JSON object which is similar to an ooRexx directory). While this is an
informal convention that is commonly used, it would be an assumption about the
structure. I will admit this would make supporting stems far easier.
This might also become an RFE in its own right as there are a few times I wish
I had something that would translate a stem's structure into an object based
structure or the reverse. At the time, I was thinking how this would have made
older BIFs like sysFileTree easier to work with OO code. I was a bit curious
what others might think about this approach. You keep talking, and I might just
have to start revisiting this! :-)
--
Brandon Cherry
Network Engineer, Safe Data, Inc.
800-488-7200 x3017
http://www.safedatausa.com/
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel