|
Overview Extending DMDScript in D license Change Log DMDScript in C++ DMDScript in C++ License tech support Archives Acknowledgements ExamplesSieveMortgage Calculator |
DMDScript in C++An alternative to the D Programming Language, implementation of DMDScript is the C++ implementation. The C++ implementation is for those applications where:
Key Benefits of DMDScript
Installing DMDScript on WindowsDownload DMDScript binaries for Win32. The C++ source code for DMDScript is available for evaluation purposes. A license is available. Files:
Installing DMDScript to run under ExplorerExplorer usually is configured to use Microsoft JScript as its ECMAscript interpreter. To configure Explorer to run DMDScript instead:
Note: Much of the Windows user interface outside of the browser depends on Microsoft's JScript engine, and it depends on many undocumented features of JScript. These undocumented behaviors may not work with DMDScript; DMDScript is designed to handle script embedded in web pages accessed through the browser. Switching Explorer Back to Using JscriptTo switch back to using Microsoft JScript:
Standalone Console Version of DMDScriptds with no arguments will compile and run the dscript file test.ds. With an argument, it will compile & run that file:ds sievewill compile and run sieve.ds. The .ds is the default extension. The console version has some additional builtin functions available:
Differences Between DMDScript (Digital Mars), Jscript (Microsoft) and Javascript (Netscape)goto StatementDMDScript implements the goto label; statement, like in C. goto is not part of the ECMA 262 v3 standard.assert() FunctionDMDScript implements the assert() function property of the Global Object. assert() throws a RuntimeError exception. If there is an argument to assert(), that argument is converted to a Boolean and a RuntimeError exception is thrown if the argument is false.__proto__ PropertyJavascript supports the __proto__ property. Neither ECMA nor Jscript nor DMDScript supports it.Conditional CompilationJScript's conditional compilation statements are not supported by DMDScript, Javascript, nor ECMA. |