Re: Re: software design clarification
[email protected] (Gilles J. Seguin) Tue, 01 May 2007 12:18:32 -0400
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2007-05-01 at 14:14 +0200, Markus Elfring wrote: > > Right. SourceFile already contains various annotations, such as language > > (C++, C, ...), documentation format (javadoc, ReST, ...), as well as > > various representations of the actual source it contains. > > > > I don't see the need to derive from it, though. > > Do any source files exist that are not compilation units? Now I must play teaching role. What is "compilation units" ? My point is, the language C++ has no notion of it. But you can says "unit of compilation". Program is not even oblige to be/have a source file. A source file is an unit of storage. And source file have other rĂ´les that are implied by their used. I our project we assume that the C++ program consist of one or more file. The one file is an utopie because of system headers. In brief, A C++ program consist of "one" or more files. A file is translated in several phases. The result is a sequence of tokens which is called a translation unit.