X-Received: by 10.43.155.134 with SMTP id li6mr196105icc.3.1410977703900; Wed, 17 Sep 2014 11:15:03 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h15no250187igd.0!news-out.google.com!ht4ni15320igb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 17 Sep 2014 13:15:03 -0500 Date: Wed, 17 Sep 2014 21:14:49 +0300 From: Donkey Hottie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Java ScriptEngine with a JavaScript returning what? References: In-Reply-To: Message-ID: Lines: 36 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-BFypLvRmNic8pPe8ow8XKFxmlKVbHXw5KDNFWkijmaVYAgWu4wUHv9Ef0cPlBm0C6UFxMvc+VrQB+OX!CiC8TTr5n1ckW7GKHBClZBbn6M4eU85CQxZjxwBYHDaSRew1a9sYBxynh2AYcHor9130GA== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2359 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Xref: csiph.com comp.lang.java.programmer:30012 17.09.2014, 20:57, Eric Sosman kirjoitti: > On 9/17/2014 1:41 PM, Chris Uppal wrote: >> [...] >> Come to think of it, is that null the result of evaluating >> >> blah >> >> or is it the result of the last evaluation -- the empty expression >> following >> the terminating ; ? >> >> Not sure what JavaScript spec says here, let alone the ScriptEngine's >> interpretation of (presumably "global" variable) 'blah'. > > FWIW, Nashorn gives null for all of > > var blah; blah; > var blah; blah > var blah; > var blah > >> (Asking JavaScript questions on c.l.j.p ! I reel with shame...) > > "Java" is just a familiar shorthand for "JavaScript," right? > There is no question about that I could mistake Java with Javascript. In this endeavour, I use JavaScript (or it could jython as well) as a scripting engine for my app, that allows scripting with what Java has to offer. Not all configuration can be done with property files in a very complex system. -- The ripest fruit falls first. -- William Shakespeare, "Richard II"