Re: This (Javascript) function has an onClick event that calls a function that calls This function



"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


.



Relevant Pages

  • Re: LIB$WAIT & COBOL/VMS problem
    ... >>potential problem out. ... >>Regards Richard Maher ... > The first time the lib$wait is called it does wait for x seconds but the ... > My declarations: ...
    (comp.os.vms)
  • Re: Remove spaces (Hard-returns) at top of pages
    ... the thing is the paragraph might end just on ... Im trying to figure out your code you send first time to see if ... "Tony Jollans" wrote: ... with the formatting you want in the first place instead of trying to lay out ...
    (microsoft.public.word.docmanagement)
  • Opening paragraphs of recent PODs that yielded an abbreviated read -- PODdy mouth
    ... "So many folks have asked me how bad a book must be to only read one sentence or paragraph before closing it. ... The first time I saw ... # The rain, wet, cold, misty and murky, fell on our saturated, pruned skin, had us running the cold, hard pavement with such animated and excited fury, that we fell in laughter when we returned to the warm, dry fire. ...
    (misc.writing)
  • latex bug with line spacing
    ... with the word "Some", when it appears the first time, the lines are too ... The problem goes away the second time the paragraph ... function wmask = findbasis ...
    (comp.text.tex)
  • Re: Remove spaces (Hard-returns) at top of pages
    ... Im trying to figure out your code you send first time to see ... "Tony Jollans" wrote: ... occurrences of (either space or paragraph mark) so a paragraph ending in ... ' Macro2 Macro ...
    (microsoft.public.word.docmanagement)