Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.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: Tue, 16 Sep 2014 15:03:02 -0500 Date: Tue, 16 Sep 2014 23:02:39 +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: Java ScriptEngine with a JavaScript returning what? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Message-ID: Lines: 18 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-sJuFil+fbkmTknsWHuhQhDIn3uou4xvJy334b4TkEoTEtDoEW4jbgaiN46cjP/HWdrImiVVs3/WmYth!B6T99RJAmA7LhVMEA7p8byfH8QWlaK4MKgPpnErC3i/6Zl2RqbgJhai3V74D2SsKiUb8aQ== 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: 1573 Xref: csiph.com comp.lang.java.programmer:29998 Consider a JavaScript: var blah; blah; So what does the Java's Object ScriptEngine::eval(String script) return now? blah is not null? Is it not undefined either? Java has no "undefined" Object type. What will happen, what will be returned? -- Don't tell any big lies today. Small ones can be just as effective.