tec8r120124@uhcl.CSNET ("Rogers.Pat") (06/09/86)
The "problem" of having only mode "in" parameter functions is easily approached via access types. To wit, althought an actual parameter of an access type is a constant and not changeable, the designated value is not a constant at all, and may be changed at will, as desired. Of course, if the data structure to be updated is not dynamically allocatable due to design considerations, then one may pass an indicator into the data structure instead, and have the function update the "global" data externally (as was previously discussed). This should not be dismissed out of hand, since this external data structure may be encapsulated inside the body of the function's defining package, with the desired principles enforced. (If you think this is a "work-around", consider how to do a clean implementation of random numbers with some other method...). In case this has been previously suggested, my apologies for not getting to my mail as fast as I would like. Regards, Pat Rogers High Tech Lab UH/CL