Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • @Roger, I'm not certain why you state that C has paired files. C programmers use two types of files for source, but implementation files are not required to have a matching header file. There isn't a "main.h" included by default for C programs. In addition, PHP includes aren't required to have a "php" file extension. Drupal uses "inc" to denote its PHP include files. Commented Oct 17, 2010 at 1:26
  • 1
    @Huperniketes: It's conventional in C, but of course not required and some uses (e.g. a header with only macros) don't need it even in projects where it's conventional. Commented Oct 17, 2010 at 1:28
  • @Roger, might you be mixing convention for modules and libraries, which indeed do typically use pairs or groups to indicate relationship, with that of module/library clients which can include headers from multiple modules/libraries? Because these P-named languages share that same behavior. Commented Oct 17, 2010 at 1:35
  • @Huperniketes: I believe you're misunderstanding. I'm not talking about Python modules and import statements, for example, because those only have one file that's edited per module. Commented Oct 17, 2010 at 1:38
  • @Roger, didn't you say that a "group as in…a single header with multiple implementation files, as also seen in C" is what you were looking for? Commented Oct 17, 2010 at 1:44