home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / CW MacMindy 1.4 / Examples / Libraries / main.dyl < prev    next >
Encoding:
Text File  |  1995-11-14  |  520 b   |  24 lines  |  [TEXT/CWIE]

  1. library:            ExampleLib
  2. module:                Example
  3. author:                Patrick C. Beard <beard@apple.com>
  4. description:        A simple Dylan example.
  5.  
  6. define library ExampleLib
  7.     use Dylan;                // use the Dylan library.
  8.     use BeepLib;            // use the Beep library.
  9. end library ExampleLib;
  10.  
  11. // first, define a module.
  12.  
  13. define module Example
  14.     use Dylan;                // all programs need this.
  15.     use Extensions;            // imports "main"
  16.     use Beep;                // imports "beep"
  17. end module Example;
  18.  
  19. // the main entry point.
  20.  
  21. define method main (argv0, #rest args)
  22.     beep();
  23. end;
  24.