Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18701

Re: import order

Date 2012-09-12 17:37 -0400
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: import order
References <c15a6122-257c-4e8a-bb11-9c7684d5d222@googlegroups.com> <k2qrs2$tg2$1@localhost.localdomain> <27de199c-6cf5-4795-9607-767971559344@googlegroups.com>
Message-ID <5051007f$0$287$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


On 9/12/2012 5:30 PM, Lew wrote:
> Martin Gregorie wrote:
>> bob smith wrote:
>>> Does order ever matter with import statements in Java?
>>> I don't think so.
>>> I noticed it does sometimes matter with C++.  Why the difference?
>
> C++ import directives (not statements!) are not the same as Java import directives.
>
> C++ import directives pull in type libraries. Java import directives identify textual
> aliases for fully-qualified class names.
>
>> C/C++ #include statements can, and often do, contain further nested
>> #includes, so its quite possible that not all of these will be inside the
>> #ifndef ... #endif brackets that should check for and skip multiple
>> inclusions.
>
> He asked about import "statements". He didn't mention '#include'.
>
> C++ has an import directive:
> http://msdn.microsoft.com/en-us/library/8etzzkb6(v=vs.71).aspx

C++ does not.

MS C++ has.

Arne

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

import order bob smith <bob@coolfone.comze.com> - 2012-09-12 13:21 -0700
  Re: import order Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 16:27 -0400
  Re: import order Martin Gregorie <martin@address-in-sig.invalid> - 2012-09-12 20:38 +0000
    Re: import order Lew <lewbloch@gmail.com> - 2012-09-12 14:30 -0700
      Re: import order Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 17:37 -0400
        Re: import order Lew <lewbloch@gmail.com> - 2012-09-12 14:48 -0700
          Re: import order Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 17:55 -0400
            Re: import order Lew <lewbloch@gmail.com> - 2012-09-12 22:36 -0700
  Re: import order Robert Klemme <shortcutter@googlemail.com> - 2012-09-12 23:27 +0200
    Re: import order Lew <lewbloch@gmail.com> - 2012-09-12 14:31 -0700
      Re: import order Martin Gregorie <martin@address-in-sig.invalid> - 2012-09-12 21:53 +0000
        Re: import order Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 18:01 -0400
    Re: import order Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 17:35 -0400

csiph-web