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


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

Re: Java ScriptEngine with a JavaScript returning what?

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 <donkey@fredriksson.dy.fi>
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 <vjhmeb-ecd.ln1@tempest.fredriksson.dy.fi> <lvad3j$qta$1@dont-email.me> <h4WdnaY_lYfcVYTJnZ2dnUVZ8jidnZ2d@bt.com> <lvci2n$rs9$1@dont-email.me>
In-Reply-To <lvci2n$rs9$1@dont-email.me>
Message-ID <plvoeb-81h.ln1@tempest.fredriksson.dy.fi> (permalink)
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

Show key headers only | View raw


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"

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-16 23:02 +0300
  Re: Java ScriptEngine with a JavaScript returning what? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-09-16 18:20 -0400
    (was: Re: Java ScriptEngine with a JavaScript returning what?) Robert Klemme <shortcutter@googlemail.com> - 2014-09-17 08:24 +0200
      Re: Re: Java ScriptEngine with a JavaScript returning what?) "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-09-17 09:48 +0100
        Re: Java ScriptEngine with a JavaScript returning what?) Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-09-17 08:32 -0400
          Re: Java ScriptEngine with a JavaScript returning what?) Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 20:08 +0300
      Re: (was: Re: Java ScriptEngine with a JavaScript returning what?) Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 19:56 +0300
        Re: (was: Re: Java ScriptEngine with a JavaScript returning what?) Robert Klemme <shortcutter@googlemail.com> - 2014-09-17 19:35 +0200
    Re: Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 19:58 +0300
    Re: Java ScriptEngine with a JavaScript returning what? "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-09-17 18:41 +0100
      Re: Java ScriptEngine with a JavaScript returning what? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-09-17 13:57 -0400
        Re: Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 21:12 +0300
        Re: Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 21:14 +0300
      Re: Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 21:17 +0300

csiph-web