home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / TURBOM2 / BOXDEMO.LBR / BOX.DOC next >
Text File  |  2000-06-30  |  4KB  |  82 lines

  1. Borland's Turbo Modula-2 for Z80's/HD64180's
  2.     by Rick Conn
  3.     23 Jan 87
  4.  
  5.     The following files constitute a simple demonstration of
  6. Borland's Turbo Modula-2.  The demo is dependent on a TVI 955 terminal
  7. (it may also run on a TVI 950 - I haven't tried it), and the BOXTEST
  8. routine (the mainline) draws 5 boxes on the screen using business graphics.
  9. This demonstration illustrates the Turbo Modula-2 packaging concept
  10. (definition/implementation modules).
  11.     Echelon sent me a copy of Turbo Modula-2, and, being a fan of Ada,
  12. I took a serious look at the system.  I am very pleased with it.  Turbo
  13. Modula-2 is certainly not Ada (or even close to Ada), but it does contain
  14. some of the really useful concepts that I regularly employ in Ada programming.
  15. For instance,
  16.     1) Turbo Modula-2 supports a packaging concept.  The definition
  17. module/implementation module concept allows a module to be defined without
  18. actually being implemented, allowing programs to be written based solely
  19. on the definition module (deferring the creation of the implementation
  20. module to a later date).
  21.     2) Turbo Modula-2 supports exceptions.  I really like this concept
  22. in Ada, and, in some ways (particularly wrt the ability to pass strings
  23. in exceptions), I like Turbo Modula-2's exception mechanism better.
  24.     3) Turbo Modula-2 supports multi-processing (coroutines).  The
  25. mechanism is simple, not nearly as sophisticated as Ada tasking, but it
  26. is useful.
  27.     I really like Turbo Modula-2 and plan to play with it for a while.
  28. Like Turbo Pascal, Turbo Modula-2 has a very nice integrated working
  29. environment (editor/compiler/librarian).  The code generated by Turbo
  30. Modula-2 is reasonably efficient.
  31.  
  32. --------------------------------------------------------------------------
  33. FILES IN THE LBR:
  34. Filename.Typ Size K RS   Filename.Typ Size K RS   Filename.Typ Size K RS
  35. -------- --- ------ --   -------- --- ------ --   -------- --- ------ --
  36. BOXLIB  .MOD      4      BOXLIBD .MOD      4      BOXTEST .MOD      4      
  37. BOXTEST .COM     12
  38.  
  39.     BOXLIBD - definition module for BOXLIB
  40.     BOXLIB  - implementation module for BOXLIB
  41.     BOXTEST - test routine/module for BOXLIB
  42.  
  43. INTERESTING FILES ON TURBO MODULA-2 WORK DISK:
  44. Filename.Typ Size K RS   Filename.Typ Size K RS   Filename.Typ Size K RS
  45. -------- --- ------ --   -------- --- ------ --   -------- --- ------ --
  46. BOXTEST .COM     12      BOXLIB  .MOD      4      BOXTEST .MOD      2      
  47. BOXLIB  .MCD      2      BOXLIBD .MOD      2      BOXLIB  .SYM      2      
  48. BOXTEST .MCD      2      
  49.  
  50.     BOXLIB.SYM - created from compile of BOXLIBD.MOD; compiling
  51.             BOXLIBD.MOD created BOXLIBD.SYM, and I then
  52.             renamed BOXLIBD.SYM to BOXLIB.SYM
  53.     BOXLIB.MCD - created from compile of BOXLIB.MOD
  54.     BOXTEST.MCD - created from compile of BOXTEST.MOD
  55.     BOXTEST.COM - COM file containing BOXTEST and BOXLIB; runs
  56.             BOXTEST
  57.  
  58. ------------------------------------------------------------------------
  59. INSTRUCTIONS FOR COMPILING
  60.     1. Compile BOXLIBD.MOD first.  This the definition module for
  61. BOXLIB which contains the definitions of the types and procedures
  62. within BOXLIB that are visibile external to the BOXLIB module.  Once
  63. compiled, rename the BOXLIBD.SYM file which was created to BOXLIB.SYM.
  64.     2. Use the Turbo Modula-2 librarian to create a new library and
  65. place BOXLIB.SYM into this library.  Add this new library to the
  66. compiler search path.
  67.     3. Compile BOXLIB.MOD next.  This is the implementation module
  68. for BOXLIB which contains the implementations of those procedures
  69. declared in the BOXLIBD definition module.  Compiling BOXLIB.MOD
  70. creates BOXLIB.MCD.
  71.     4. Use the Turbo Modula-2 librarian to add BOXLIB.MCD to the
  72. new library (which already contains BOXLIB.SYM).
  73.     5. Compile the mainline module BOXTEST.MOD.  The resulting
  74. BOXTEST.MCD file may then be linked (be sure the new library which
  75. contains BOXLIB.SYM and BOXLIB.MCD are in the search path).  BOXTEST.MCD
  76. may also be run without explicit linking to create a COM file.
  77.  
  78. ------------------------------------------------------------------------
  79. DISCLAIMER: I used to be associated with Echelon, who now sells
  80. Turbo Modula-2.  I receive no income from Turbo Modula-2 sales.
  81.  
  82.