Hi Rony, Missatge de Rony G. Flatscher <rony.flatsc...@wu.ac.at> del dia dc., 19 de març 2025 a les 12:59: (cut)
> The behavior to turn unhandled/untrapped conditions to SYNTAX conditions > that get propagated is not applied to all conditions. Notably, raising the > "USER usercondition", but not trapping/handling it in the immediate caller > does not turn it into a syntax condition (which works as designed). If > there is a need to propagate user conditions, then it is mandatory to > manually define trap/condition handlers and then use raise propagate in *all > *routines/methods of the call chain, which is quite cumbersome. This may > affect ooRexx frameworks and complex ooRexx programs. > > (cut) Agreed. It's so cumbersome that it makes the feature unusable, in practice. I used it once, when developing the first versions of REXXHTTP. It's extremely annoying to have to add a handler which simply propagates the condition upwards to every routine. Annoying, and error-prone, as it gets too easy to forget one handler, in a particular routine. And it's aesthetically unpleasant too. >From then on, I resorted to use SYNTAX. For example, my new parser uses a 98.900 and stores all relevant stuff in the ADDITIONAL array. If USER conditions are to be usable, their design needs to be improved. I think that your suggestion is a good step in the right direction. Josep Maria
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel