Re: Re: software design clarification
Stefan Seefeld <[email protected]> Tue, 01 May 2007 07:36:05 -0400
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Markus Elfring wrote:
>
>>> I suggest to derive "CompilationUnit" from "SourceFile".
>>>
>>
>> Why ? (Hint: It would be highly beneficial if you would adorn your
>> various
>> suggestions with rationale or some other form of reasoning providing
>> me clues
>> as to what you have in mind. I don't like second-guessing.)
>
> I imagine that a compilation unit will be connected to a specific
> programming language or conversion/transformation tool while a source
> file will be the lowest base class.
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.
Regards,
Stefan
--
...ich hab' noch einen Koffer in Berlin...