Hi all,

I was trying to compile a program from Language spec.

var count$:sync int = 0;
cobegin {
count$ += 1;
count$ += 1;
count$ += 1;
}
writeln("Count = ",count$);

On compilation, it resulted in an error:

$CHPL_HOME/modules/standard/IO.chpl:3743: error: sync variables cannot
currently be written - apply readFE/readFF() to those variables first

What is wrong?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to