Previous Topic

Next Topic

Inhoudsopgave

Book Index

Generation of IDs

Isah 4.0.5 also introduces a new way of generating IDs for components that are created. In version 4.0.3, the ID counter used to start with 0 for each script. Each component created was given an ID, and the counter was incremented by 1. As this was the same for each script, the first component created always had an ID of 0. As a result, the components would normally always get the same ID in runtime if the script remained unchanged. This allowed the use of hard-coded IDs in the script, which was not desirable.

As from Isah version 4.0.5, the counter will continue to increment, thereby always creating unique IDs, even if multiple scripts are run at the same time. This means that hard-coded IDs can no longer be used in scripts.