Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Kaz Kylheku Newsgroups: comp.programming Subject: Re: can UML be used with a procedural language? Date: Thu, 1 May 2014 00:56:44 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 18 Message-ID: <20140430175019.303@kylheku.com> References: NNTP-Posting-Host: X+c6YNb3AaWMPA3YfA4opg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/pre1.0.0-18 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.programming:4368 On 2014-04-30, gdotone@gmail.com wrote: > Can UML be used with a procedural language? like C UML can be used to express designs which are then implemented using object oriented programming techniques in C. There is no support in C for *directly* expressing the concepts in UML, using just the language, without adhering to the conventions of some supporting OO programming framework. Some aspects of UML can't be directly expressed in some OO languages either. For instance, an N:1 relationship expressed dirctly in UML may require you to define some extra members in an object: list or set structures that hold references to other objects. These auxiliary things don't appear in the UML. A C implementation will have more cruft that doesn't appear in the UML. (Perhaps so much so that you have to wear special UML glasses in order to see the original UML design when looking at the code.)