This page lists known limitations in the current release of CPAL.
Known issues – on October 10, 2018
- Initialization of static variables with non-constant values is not possible. Typically this can be useful to get the current time at the first startup of a process. A first workaround is to measure the time in the
init()
function, that is run once before the processes are launched. A second workaround is to add a initial state in the process like shown below:processdef MyProc() { static var time64: startup_time; state Init { startup_time = time64.time(); } on (true) to Main; state Main /* ... */ } }
- Static variables can only be declared as process-level variables (not in functions)
- [CPAL-editor] The Java Virtual Machine (JVM) refered to by the JAVA_HOME variable must match your MS/Windows architecture (32 ou 64bit) for the editor to start.