Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
BoolArgs


NAME

BoolArgs - arguments of type BOOLEAN

SYNOPSIS

TYPE Value = POINTER TO ValueRec;
TYPE ValueRec =
   RECORD
      (Args.ValueRec)
      bool: BOOLEAN;
   END;
VAR type: Args.Type;


TYPE ErrorEventRec = RECORD (Events.EventRec) name: ARRAY 80 OF CHAR; END; VAR error: Events.EventType;

PROCEDURE Create(VAR value: Args.Value; bool: BOOLEAN);

DESCRIPTION

BoolArgs implements the BOOLEAN argument type for Args. BoolArgs accepts the set of alias names for TRUE and FALSE of BoolDisciplines. Note that this discipline may be specified for the argument list, the individual boolean-typed argument, or the streams where it will be read from by the scanning modules. The help text for this type gives the set of known aliases.

Create allows to create and set a BOOLEAN-typed value.

DIAGNOSTICS

An event of type error is raised and related to the stream if the input could not be interpreted as TRUE or FALSE.

SEE ALSO

Args
general abstraction for arguments
BoolDisciplines
sets of alias names for TRUE and FALSE

BUGS

There might be some confusion if the set of alias names for BOOLEAN values has been set differently for the stream used by one of the scanners than for the stream used for printing the help text.
Edited by: borchert, last change: 1995/04/13, revision: 1.1, converted to HTML: 1997/04/28

Oberon || Library || Module Index || Search Engine || Definition || Module