By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

Internal Function

P: n/a
Hi,
I have a very basic question. What is meant by the term "internal
function"? What makes it "internal"?

-newbie

Oct 6 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
wrote on 06 okt 2005 in comp.lang.javascript:
I have a very basic question. What is meant by the term "internal
function"? What makes it "internal"?


That it comes with the language:

replace() is an internal function

myReplaceFunction() is not, but you can make it a function.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 6 '05 #2

P: n/a

jo*********@gmail.com wrote:
What is meant by the term "internal
function"? What makes it "internal"?


Where have you seen that term used, in which context? If someone has
used it here in the newsgroup then provide the id of the post so that we
have some context. Or post a URL where that has been used.

The ECMAScript specification defines the term as follows (edition 3
section 10.1.1):

"Internal functions are built-in objects of the language, such as
parseInt and Math.exp. An
implementation may also provide implementation-dependent internal
functions that are not described
in this specification. These functions do not contain executable code
defined by the ECMAScript
grammar, so they are excluded from this discussion of execution contexts."

and contrasts that to "program functions" defined as

"Program functions are defined in source text by a
FunctionDeclaration or created dynamically either
by using a FunctionExpression or by using the built-in Function object
as a constructor."
--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 6 '05 #3

P: n/a
Hi,
Thanks for the info and the quick response. I did not see the term on
the forum, it was in a document at my work.

Thanks,
Joe

Oct 6 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.