Im folgenden Paket wird eine Instanz der zweiwertigen Standard-Logik
geschaffen.
with General_Boolean;
package body Standard_Boolean is
function "and"(left,right: stand_bool) return stand_bool
is
h: stand_bool;
begin
h.b := left.b and right.b;
return h;
end "and";
function "or" (left,right: stand_bool) return stand_bool
is
h: stand_bool;
begin
h.b := left.b or right.b;
return h;
end "or";
function "not"(val: stand_bool) return stand_bool
is
h: stand_bool;
begin
h.b := not val.b;
return h;
end "not";
end Standard_Boolean;
Zusätzlich zu den Operationen wurden auch noch Konstanten für