Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: preprocessor idea Date: Sun, 16 Oct 2011 23:56:14 +0200 Lines: 32 Message-ID: <9g127uF848U1@mid.individual.net> References: <4e94ce75$0$284$14726298@news.sunsite.dk> <9foia2FjbkU1@mid.individual.net> <4e97a33b$0$282$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: individual.net 6d+tKZF8HHzTFjUMNHjfOw3U7UKK4qRvRMhlPlmtssY9kfZIM= Cancel-Lock: sha1:Hp87LTLtX6trAIHuiIKpo7wmE4s= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15 In-Reply-To: <4e97a33b$0$282$14726298@news.sunsite.dk> Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8872 On 10/14/2011 04:49 AM, Arne Vajh=F8j wrote: > On 10/13/2011 12:35 PM, Robert Klemme wrote: >> On 12.10.2011 01:17, Arne Vajh=F8j wrote: >>> Run the Java code through the C preprocessor with the same defines. >>> >>> String[] javaarray =3D { >>> "None" >>> #ifdef lib1 >>> ,"lib1" >>> #endif >>> #ifdef lib1 >>> ,"lib1" >>> #endif >>> }; >> >> I do not think it's worthwhile to open that can of worms for this >> decision. After all getting rid of the CPP is one of the major >> advantages of Java over C++ (even Stroustrup regrets not having ripped= >> it out of C++) and complicating the Java build process just for that >> decision seems too heavy - especially since there are other solutions >> available. > > What other solution achieve the same? Please see elsewhere in this thread. Kind regards robert