Hi, there is currently no way to model non-class functions in C++. I already considered the need for this, but, haven't yet proposed a scheme.
UML is an object oriented modeling language and therefore doesn't fit well into modeling standalone functions and variables. The most elegant way I considered up-to-now would be to model standalone functions and variables as objects of classes. For variables this is straightforward, but, for functions you would have to consider something like a Function class... Regards, Luís On Sun, Jan 24, 2010 at 12:59 PM, dams <[email protected]> wrote: > Hi, > > How can we put the main c++ function, int main(int argc, char* argv[]), > which is not in a specific class in c++ but is a standalone and > mandatory function, under the class diagram ? > > ------------------------------------------------------ > > http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=2441527 > > To unsubscribe from this discussion, e-mail: [ > [email protected]]. > ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=2441608 To unsubscribe from this discussion, e-mail: [[email protected]].
