Back to table

Expressions in VAL

The following is invalid µOCCAM. The expression in the VAL declaration contains a variable and so the expression can't be calculated at compile time.

Program file: /public/cs3/web/ipptests-phase-1/expressions-in-VAL.reject
INT not.constant = 0 :
VAL a.name IS 2 + not.constant :
PAR
  a.channel ? not.constant
  another.channel ! not.constant + 1