Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "javax.swing.JSnarker" Newsgroups: comp.lang.java.programmer Subject: Re: "Small" Program Challenge. Date: Mon, 18 Jun 2012 22:12:50 -0400 Organization: media lab? Lines: 34 Message-ID: References: <4fde76ce$0$287$14726298@news.sunsite.dk> <7kIDr.12088$Bp1.3039@newsfe10.iad> NNTP-Posting-Host: 3urdS3lMyXHJXrtKy7vOkg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: NewsTap/3.5.5 (iPhone/iPod Touch) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:15405 On 18/06/2012 10:04 PM, Gene Wirchenko wrote: > On Mon, 18 Jun 2012 18:25:13 -0700 (PDT), Lew > wrote: > > [snip] > >> I keep quoting and requoting the JLS, section 12.4.1. You should read it. >> You obviously missed something or got confused. > > javax.swing.JSnarker: > > Either Lew is correct here, or he is not. > > If he is correct, then you should listen to him. > > If he is not and since he is a fairly on-the-ball sort, then it > is a confusing area, and you would be better off to not code in such a > way as to depend on such a confusing area. > > The C equivalent of your argument is someone arguing that void > main() works on his system. (main() is defined in the C standard as > returning int on a hosted system (i.e. running under an OS).) Void main() is not supported by the C specification. However, the quoted section of the JLS clearly states that initialization precedes invocation (which is also just plain common sense). -- public final class JSnarker extends JComponent A JSnarker is an NNTP-aware component that asynchronously provides snarky output when the Ego.needsPuncturing() event is fired in cljp.