| 1 |
This document notes differences between Idol version 6 (the previous |
| 2 |
distributed version) and the current release, version 8. See the |
| 3 |
idol reference manual (idol.doc, TR 90-10) and the Idol man page |
| 4 |
for a complete description of Idol. |
| 5 |
|
| 6 |
Summary of New Features (example/reference) |
| 7 |
|
| 8 |
* Constants (const bar := 3.1415, version := "Idol 8.0") |
| 9 |
* Include files (#include foo.iol) |
| 10 |
* Index meta-operator (x$["baz"]) |
| 11 |
* Automatic installation (no "idol -install" step) |
| 12 |
* Shared class environment (IDOLENV environment variable) |
| 13 |
* Temporary environments (clean single-file translation) |
| 14 |
* Contributed ports (Amiga, MPW, MS-DOS, MVS, OS/2, UNIX, VMS) |
| 15 |
|
| 16 |
Idol Version 8 incorporates significant improvements in usability without |
| 17 |
any major changes in the object model used in the previous release. Code |
| 18 |
from Idol release 6 may have to be recompiled but will function unchanged |
| 19 |
under release 8. |
| 20 |
|
| 21 |
CONSTANTS |
| 22 |
|
| 23 |
Idol supports a "const" declaration for Icon values of type string, cset, |
| 24 |
integer, and real. See the Idol reference manual for details. |
| 25 |
|
| 26 |
INCLUDE FILES |
| 27 |
|
| 28 |
Idol supports textual inclusion. This is intended primarily to facilitate |
| 29 |
sharing of constant values amongst separately translated files. |
| 30 |
|
| 31 |
INDEX META OPERATOR |
| 32 |
|
| 33 |
x $[ y, z, ...] is shorthand notation for the expression x$index(y,z,...). |
| 34 |
Many classes implement an index or lookup operation, and this notation |
| 35 |
supports that operation as closely to Icon's syntax as possible. |
| 36 |
|
| 37 |
AUTOMATIC INSTALLATION |
| 38 |
|
| 39 |
The "idol -install" step required in the previous release is performed |
| 40 |
automatically if required. |
| 41 |
|
| 42 |
SHARED CLASS ENVIRONMENT |
| 43 |
|
| 44 |
On systems supporting the getenv() function, the environment variable |
| 45 |
IDOLENV may optionally denote a class code repository for use by all |
| 46 |
Idol operations. This allows sharing of classes amongst programs |
| 47 |
translated in different directories. |
| 48 |
|
| 49 |
TEMPORARY ENVIRONMENTS |
| 50 |
|
| 51 |
"Automatically installed environments" as described above are considered |
| 52 |
temporary and automatically removed after successful compilation if |
| 53 |
compilation consists of a single source file, and no IDOLENV variable |
| 54 |
is present. |
| 55 |
|
| 56 |
CONTRIBUTED PORTS |
| 57 |
|
| 58 |
Icon enthusiasts transported Idol to several machines; these ports |
| 59 |
were for version 6, but many or most of them will work for version 8. |
| 60 |
They have been adapted to include new features to the best of my |
| 61 |
abilities, but if you are not using MS-DOS you may want to examine |
| 62 |
things and make adjustments. This should be much easier than writing |
| 63 |
your own port, at any rate. I am available by e-mail or telephone |
| 64 |
should questions arise. |