Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6198789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:04:35+00:00 2026-05-24T04:04:35+00:00

From what I know, in C++ applications, if you include a header file –

  • 0

From what I know, in C++ applications, if you include a header file – the contents of the header file are pasted into the code.

On the other hand, in Java – when you import a Java library – I think the parameters are passed to the library in the JVM.

How does the behaviour of the uses clause in Pascal programs compare to this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:04:35+00:00Added an answer on May 24, 2026 at 4:04 am

    All three have to do with how to construct a program from multiple source files.

    C/C++ has the rock bottom level, all required declarations the compiler need to be included and compiled again for each piece of source (.c,.cpp) as if it was one big source.

    Pascal also supports this (it has a $INCLUDE directive), but it is much less used (and even then more in system programming, and hardly at all in application programming). Using this inherits all the problems C/C++ have, but since the use is magnitudes less this is less visible.

    This because with the Uses/units system Pascal has a better system that can import other pieces safely and automatically without recompiling them. It is also possible to inline functions without declaring them in the header.

    Java pretty much does the same in principle, but its implementation is totally different (based on hierarchical nested namespaces instead of namespaces that are always of the form unitname.identifiername[.fieldnames] like Pascal)

    Both Java and Pascal gain though that the compiler can compile a program by only passing the main file and a bunch of paths. The compiler will the research itself what to compile and what not. It also enables them to automatically construct a linker line from the found pieces of source.

    This renders the need for complex external buildsystems (like make) and manually maintaining administration (makefiles) of this for basic building moot.

    So in summary, they are all about the same (interactions between multiple source files), but the Pascal and Java systems build on top of that for ease of use, and to give more control at the compiler

    Added later: The core principle of modular systems is to hard link one header to each main code file (which is only linked by convention in C), and to make changes to the preprocessor local to only that file (and $INCLUDE’d, but not USES’d/imported files. So the preprocessor state at the start of a module is only dependent on the compiler startup state. (read: internal compiler and commandline/environment). Note that this means it is not possible to import macro’s via USES, since they are preprocessor state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that I can pin applications to the dock and launch them from
I am from Java Desktop Application background. May I know what is the best
I know from wikipedia for example that exception handling is used in an application
I know with .NET we can host wcf service from a console application without
Does anyone know if it is possible to restart a J2EE application (from the
Does anyone know how you setup new commands to launch an application from the
I'd like to know how to control my application's volume from the volume keys
I know from reading Microsoft documentation that the "primary" use of the IDisposable interface
I know from this question that Firefox 3.0 and up stores its cookies in
I know from here that I can pass an ignore option in the jQuery.validate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.