A forum for Spin users
You are not logged in.
Pages: 1
In the manual page on _pid it is stated:
_pid - a predefined, local, read-only variable ....
and
It is an error to attempt to assign a new value to this variable,
However, spin will happily accept the following program:
active proctype(){
_pid = _pid + 3;
}
init{
_pid = _pid * 2;
}
When I print the value of _pid before/after the assignment, I notice that the value has not changed which is OK semantically.
But that seems a bit different from "It is an error" ?
Offline
Pages: 1