File: dbf\choice.adb

    1 --::::::::::
    2 --choice.adb
    3 --::::::::::
    4 -- Developed by (C) Wasiliy W. Molostoff 1994, 1995.
    5 --                  Moscow, Russia,
    6 --                  Voice:   7 (095) 398-23-38
    7 --                  e-mail:  edv@edv.msk.ru
    8 -- This is free software; you can  freely  redistribute  it  and/or
    9 -- modify  it  without any restrictions.  Please report any errors.
   10 -- All corrections will be made as soon as possible.
   11 function choice (x, y: object) return object is
   12 begin
   13       if cond (x, y) then
   14          return x;
   15       else
   16          return y;
   17       end if;
   18 end;
   19