Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #15967
| Message-ID | <9918278.jPXTlJuZSa@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-09-18 11:14 +0200 |
| Subject | Re: Question on closure |
| Newsgroups | comp.lang.javascript |
| References | (1 earlier) <XnsA0D1CBA63824Cjaejunksgooglemailco@0.0.0.50> <2rle589b4vsrkfkdahh9f78t8vrkg69t3n@4ax.com> <k37m9b$1i8$1@speranza.aioe.org> <v33f58pm2r4a20n2pkj3ieadccu0aauhle@4ax.com> <k386sm$m64$1@news.albasani.net> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Stefan Weiss wrote:
> On 2012-09-17 22:56, Gene Wirchenko wrote:
>> Christoph Becker wrote:
>>> function Counter() {
>>> var theValue = 0;
>>> return {
>>> getVal: function() {
>> ^^^^^^^^^^^^^^^^^^
>> Could you please give me pointer to where this syntax is
>> discussed? I tried the standard, but what I found -- sections 12.1
>> Block and 12.12 Labelled Statements -- is remarkably opaque. Do I
>> even have the correct section(s)?
>
> No, this has nothing to do with labels. The return value in this case is
a reference to
> an object, written in the form of an object literal. [further explanation]
ACK.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Question on closure justaguy <lichunshen84@gmail.com> - 2012-09-15 13:01 -0700
Re: Question on closure JJ <jaejunks_at@_googlemail_dot._com> - 2012-09-17 12:57 +0000
Re: Question on closure justaguy <lichunshen84@gmail.com> - 2012-09-17 09:14 -0700
Re: Question on closure Gene Wirchenko <genew@ocis.net> - 2012-09-17 10:02 -0700
Re: Question on closure Christoph Becker <cmbecker69@gmx.de> - 2012-09-17 19:23 +0200
Re: Question on closure Gene Wirchenko <genew@ocis.net> - 2012-09-17 11:13 -0700
Re: Question on closure Gene Wirchenko <genew@ocis.net> - 2012-09-17 13:56 -0700
Re: Question on closure JJ <jaejunks_at@_googlemail_dot._com> - 2012-09-17 21:47 +0000
Re: Question on closure Stefan Weiss <krewecherl@gmail.com> - 2012-09-18 00:06 +0200
Re: Question on closure Gene Wirchenko <genew@ocis.net> - 2012-09-17 19:55 -0700
Re: Question on closure Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-18 11:14 +0200
Re: Question on closure Christoph Becker <cmbecker69@gmx.de> - 2012-09-17 19:32 +0200
Re: Question on closure justaguy <lichunshen84@gmail.com> - 2012-09-17 11:16 -0700
csiph-web