Next: , Previous: , Up: Well-formedness – Top level   [Contents][Index]


11.3.3 out-event must be void

Only in-events can have a non-void type.

interface typed_out_event
{
  out bool world ();
  behavior {on optional:bool b = world;}
}

This results in the following error message:

typed-out-event.dzn:3:3: error: out-event `world' must be void, found
    `bool'