When I have a function that calls another function within its body and stores the output of the other function in a an array for example and then uses it somehow.
What type of module coupling is this? I have looked through the types of coupling on Wikipedia https://en.wikipedia.org/wiki/Coupling_(computer_programming) and it seem like the most logical coupling is Data coupling. But I am not sure, since Data coupling is about passing outputs to the parameters of a function rather then that a function using the outputs of other functions within its body.
I do not see value in trying to classify every type of relationship as a form of coupling. Here is an example of what you have described.
I have a function that calls another function within its body --
make_squarescallssquare.I store the output of the other function in an array. The array is named
square_array.If I had to name the type of coupling, I would name it "dependency coupling" because
make_squaresdepends onsquare. I consider those functions to be loosely coupled.