raz / conform / run / mods / PictBase.raz

14 lines · 260 B · raw · history · last change 73c1f3ac

1(* Errors that another module passes on, for ErrorConstNamed *)
2module PictBase;
3
4const
5 Short*: ERROR = "too short";
6 Bad*: ERROR = "bad header";
7
8proc read*(n: INT): ERROR;
9begin
10 if n < 4 then return Short; end;
11 return nil;
12end;
13
14end PictBase.