Next: Errors statically detected Up: Smac Previous: watch_on

# Error messages

Xcoral displays error messages in a special window, otherwise they are written on stderr. Errors can occur in three cases:

- When Smac reads your programs, in which case, the line number and filename containing the error, is given.
- When Smac interprets your programs and produces an internal form to memorize it. In this case and the next one, Smac gives the function name or informs that it is a top level form. Unfortunately the line number is lost.
- During executions.

Smac does not generate warnings, and when an error occurs, the execution or the reading stops. If you are under Xcoral, this one recovers control.

The possible messages are:

- Errors statically detected
  - Control structures
  - Function definitions and calls
  - Assignment
  - Operators
  - Initialization
  - Array
  - Redefinition
  - Others
- Errors detected at run time
  - Illegal memory access and sets
  - About functions
- Others