DelphiScript is an OLE scripting language, like VBScript or JScript, but derived from Standard Pascal (not Object Pascal).
DelphiScript is an ole scripting language, like VBScript or JScript, but derived from Standard pascal (not Object Pascal).
It has extensions to support OLE objects and the OLEVariant type. It then treats all Standard Pascal types as OLEVariant, or it does not support them if they do not fit that model -- pointers, files, records (replaced by untyped arrays). Declaring the type of a variable or parameter is allowed, but has no effect. Type definitions are not supported.
Another extension supports exception handling in the same way as Object Pascal does. DelphiScript supports almost all Standard Pascal operators and Standard Pascal routines (for example, mod
, copy
), minus those that deal with I/O
or type conversions (e.g. str
). Type conversions are implicit.
Standard Pascal routines are listed in the Delphi Help or Object Pascal Guide as belonging to System. There are no set operators, but they are replaced with procedures. DelphiScript itself does not support routines that do not belong to System. However, several of these are supplied through a plug-in extension, Utilities
.
You should use this tag if your question is related with DelphiScript or its supported extensions.