Re: This (Javascript) function has an onClick event that calls a function that calls This function
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 Oct 2006 08:54:28 +0200
"Dr J R Stockton" <jrs@xxxxxxxxxxxxxxxxxx> wrote in message
news:IhwFb5F8$kPFFw0N@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In message <453dcb16$0$338$e4fe514c@xxxxxxxxxxxxxx>, Tue, 24 Oct 2006
10:13:07, Maarten Wiltink <maarten@xxxxxxxxxxxxxxxxxx> writes
[...][Javascript] Functions are not resolved ahead of
time, but only when they're actually called. At that time, the entire
source is scanned, so forward declarations aren't necessary.
I agree with the second half of your last sentence, but not with the
first half (that would be intolerably slow).
the names and addresses of the functions will be put in a list during
a pre-execution scan; during execution, it is only necessary to seek
within the list (which can be done more or less efficiently).
Would you believe that I deleted some extra lines from that paragraph
where I was going to say that this _behaviour_ did not preclude a
compiled _implementation_?
The effect is that the entire source is scanned. How this effect is
obtained is irrelevant except for performance considerations. The
scanning might be postponed until necessary; then the source _would_
be scanned the first time an unknown function was encountered.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- References:
- This (Javascript) function has an onClick event that calls a function that calls This function
- From: Bob Richardson
- Re: This (Javascript) function has an onClick event that calls a function that calls This function
- From: Maarten Wiltink
- Re: This (Javascript) function has an onClick event that calls a function that calls This function
- From: Dr J R Stockton
- This (Javascript) function has an onClick event that calls a function that calls This function
- Prev by Date: Re: This (Javascript) function has an onClick event that calls a function that calls This function
- Next by Date: Re: Textbook recommendation
- Previous by thread: Re: This (Javascript) function has an onClick event that calls a function that calls This function
- Next by thread: Re: This (Javascript) function has an onClick event that calls a function that calls This function
- Index(es):
Relevant Pages
|