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


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

Re: import order

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: import order
Date 2012-09-12 20:38 +0000
Organization UK Free Software Network
Message-ID <k2qrs2$tg2$1@localhost.localdomain> (permalink)
References <c15a6122-257c-4e8a-bb11-9c7684d5d222@googlegroups.com>

Show all headers | View raw


On Wed, 12 Sep 2012 13:21:25 -0700, 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/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. 

Since, unlike a C/C++ #include statement, an import doesn't pull in any 
source code, Java can never have this sort of clash.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

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