A forum for Spin users
You are not logged in.
Pages: 1
Hi, I keep getting this error message and don't know why or how to solve the problem:
Error: place initialized var decl of 'ia' at start of proctype saw ';' near 'byte'
The code looks like this:
...
proctype agent (byte index) {
....
}
init{
...
byte ia = 1;
...
atomic {
run agent(ia);
}
}
ia is a byte value that gives the process an index in a global array. From the error message I get that it is not initialized propperly. But I don't see why. Any idea what I'm doing wrong?
Thanks in advance for any clues
Offline
Pages: 1