R
Richard Cornford
John said:VK writes:
<snip>
Could you say, clearly and in not many words and with no
irrelevant examples, what this incontinence is.
The evidence suggests that he cannot.
Richard.
John said:VK writes:
<snip>
Could you say, clearly and in not many words and with no
irrelevant examples, what this incontinence is.
John said:Could you say, clearly and in not many words and with no irrelevant
examples, what this incontinence is.
VK said:That really was discussed N times in this newsgroup,
In the requested minimum of words:
"incontinence of <this>" refers to a set of situations when - due to
ECMAScript engine specification bugs - <this> points to the expected
object at the moment of initialization/assignment but does point or may
point to a unexpected object a step later.
<http://www.crockford.com/javascript/private.html> will get you on hold
of the most known one. After you are done and if willing to continue
we'll move on ontimer calls.
Richard said:The - this - keyword always points to the 'expected' object, you just
need to understand the mechanism before you can have the correct
expectation.
VK said:Richard, it is a mute point, we tried it before. To even
discuss "what is wrong" it is needed first to agree that
there is something wrong around.
In application to an ECMAScript-compliant behavior in
order to agree that something is wrong around it is
necessary first to accept that something can ever be
wrong with official specifications.
This is why some agreement on the bug definition was a
necessary lemma to move on ("lemma" in the sense that
it is not practically so important, but it allows to
prove other practical things later).
Gibberish.
Your definition of a "bug" and "official specification"
simply exclude any existence possibility of problems like
the one with <this>.
That is going to be another chain of my samples and your
detailed explanations why it is fully conforming to the
existing specs (which is the point I am not arguing with).
<snip>The question ahs certainly been asked many times, but you never manage
to answer it.
In a language that determines the value for - this - always, and only,
by how a function is called the - this - value should be expected to
differ depending on how a function is called, and so not necessarily be
the same at the point where a function is defined (and/or assigned) and
the point where it is called. Indeed the - this - value could not even
be assumed to be the same if the same function is called in two
different ways.
John said:Richard Cornford writes
Good heavens! So that's what he's trying to say. Well, well!
Does he object to ordinary function calls, such as a.b.c(),
or to new expressions, such as new Thing() ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.