Article View: borland.public.jbuilder.java.language
Article #8785Re: condition compile in Java?
From: Hartmut
Date: Mon, 26 Feb 2001 15:21
Date: Mon, 26 Feb 2001 15:21
15 lines
1038 bytes
1038 bytes
glisten liu,
you can use a
static final boolean TRACE = true;
to control conditional compiled blocks.
A block like
if( TRACE )
{
...
}
is not compiled then if TRACE is set to false.
Regards,
Hartmut (Ex-C++-prg.)
Technical Details
Message-ID:
<3a9a7460$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!skynet.be!newsfeed01.tsnz.net!bornews.borland.com!dnews!217.3.246.68References:
<3a99c43b_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,599cae576843a743 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-02-26 07:34:06 PST From: "Hartmut" <hartmut.kiessling@bnhof.de> Newsgroups: borland.public.jbuilder.java.language References: <3a99c43b_2@dnews> Subject: Re: condition compile in Java? Date: Mon, 26 Feb 2001 16:21:00 +0100 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 217.3.246.68 Message-ID: <3a9a7460$1_1@dnews> X-Trace: 26 Feb 2001 07:21:04 -0800, 217.3.246.68 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!skynet.be!newsfeed01.tsnz.net!bornews.borland.com!dnews!217.3.246.68