On 01/12/2005 22:14, VK wrote:
[snip]
P.S. Does anyone really think that ECMA-262 indeed can be implemented
as it is without internal or external (host) extensions?
Yes, of course. Would it be useful? No.
Have you ever read the specification that you try to deride so often? If
so, surely you'd have read:
A scripting language is a programming language that is used to
manipulate, customise, and automate the facilities of an
existing system.
-- sent. 1, par. 3, 4 - Overview
and perhaps the next two sentences?
In such systems, useful functionality is already available
through a user interface, and the scripting language is a
mechanism for exposing that functionality to program control.
In this way, the existing system is said to provide a host
environment of objects and facilities, which completes the
capabilities of the scripting language.
Notice that is states "the _capabilities_ of the scripting language".
Without an ability to serve instructions to the interpreter
What's that got to do with the /language/?
and without an ability to see any output?
Again, that is domain of the host, not the language.
[snip]
If no one thinks so than what's wrong with the statement: "ECMAScript
is an abstract model description which *have* to be extended to
become a programming language"?
Because you're failing to see the distinction between the language and
its environment. The former, in my eyes, only needs to specify the
constructs, data types, and their behaviour and grammar.
Does anyone know *any* language without in/out mechanics?
C and C++. I also consider Java not to, either. Unlike ECMAScript,
however, each of these have standard libraries which provide I/O amongst
many other things. ECMAScript expects the host to provide the equivalent.
[snip]
Mike