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


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

Re: Java ScriptEngine with a JavaScript returning what?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Java ScriptEngine with a JavaScript returning what?
Date Wed, 17 Sep 2014 13:57:35 -0400
Organization A noiseless patient Spider
Lines 25
Message-ID <lvci2n$rs9$1@dont-email.me> (permalink)
References <vjhmeb-ecd.ln1@tempest.fredriksson.dy.fi> <lvad3j$qta$1@dont-email.me> <h4WdnaY_lYfcVYTJnZ2dnUVZ8jidnZ2d@bt.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 17 Sep 2014 17:57:43 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="bd4e1cba8d8592bec5d5ed9e4537fbfd"; logging-data="28553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+1CyLIlRT1V0bxzvk28Uq"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1
In-Reply-To <h4WdnaY_lYfcVYTJnZ2dnUVZ8jidnZ2d@bt.com>
Cancel-Lock sha1:ED5OPJpDMXZjuxHBftSH1GYBta8=
Xref csiph.com comp.lang.java.programmer:30010

Show key headers only | View raw


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?

-- 
esosman@comcast-dot-net.invalid

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