Hi Rony, Missatge de Rony G. Flatscher <rony.flatsc...@wu.ac.at> del dia dg., 9 de març 2025 a les 14:04: (cut)
> 1a) In order to create an ooRexx array from a stem array the following >> method should be added to the stem class: >> >> makeArrayFromStemArray >> >> This name makes it clear that a stem array is to be processed and that >> the resulting array should not have the stem value with the tail 0. >> (The existting stem method makeArray continues to create an array that >> represents all tails of a stem, including a tail with the value 0.) >> > I'm not sure that using "makeXXX" for the message names is a good idea, > because the request method of the Object class uses the "make" pattern for > class conversions. > > Yes, that is the reason why using that name. > Ah, but a class called "ArrayFromStemArray" does not exist, and that breaks the "make" semantics. Rexxref 5.4.1.18 "request" says "Any conversion method *must return an object of the requested class*. For example, makeArray must return an array" (emphasis mine). But, since there is no such thing as an ArrayFromStemArray class, this could be misleading. Josep Maria
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel