home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19205 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  3.3 KB

  1. Path: sparky!uunet!gumby!destroyer!gatech!pitt.edu!cjfst4
  2. From: cjfst4@cis.pitt.edu (Chad Freeman)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ** FINALLY - AN _GREAT_ AMIGA PROGRAMMING LANUAGE
  5. Message-ID: <2552@blue.cis.pitt.edu>
  6. Date: 26 Jan 93 17:51:18 GMT
  7. References: <alien.02q1@acheron.amigans.gen.nz>
  8. Sender: news+@pitt.edu
  9. Reply-To: cjfst4+@pitt.edu
  10. Organization: University of Pittsburgh at Johnstown
  11. Lines: 71
  12. X-Newsreader: TIN [version 1.1 PL8]
  13.  
  14. Ross Smith (alien@acheron.amigans.gen.nz) wrote:
  15. : In article <thecure.727159005@munagin> thecure@mullian.ee.mu.OZ.AU (matthew aardvarkious) writes:
  16. : >I _strongly_ suggest you should all at least _try_ to get amigae21.lha
  17.  
  18. : Two questions spring to mind:
  19. :    (1) Is it available from any ftp-by-mail site? (for those of us who don't
  20. :        have access to real ftp)
  21. :    (2) How big is it? (for those of us who have to pay big buck$ for email)
  22.  
  23. : >Easy! - The other incredible thing about it is the _speed_
  24. : >
  25. : >- Compilation speed of 10.000 to 35.000 lines/minute on a 7mhz Amiga 500,
  26. : >  25.000 to 85.000 l/m on a 14mhz Amiga 1200 (both _without_ fastram)
  27.  
  28. : 85 lines a minute? Fast?!
  29.  
  30. I don't know what the real figures are, but they ain't it.
  31.  
  32. : >It also caters specifically to common amiga programming, like this.
  33. : >
  34. : >w:=OpenW(20,11,400,100,$200,$F,'My first window in E!',NIL,1,NIL)
  35.  
  36. : Huh? In what way is this an improvement on the corresponding C code?
  37.  
  38. :    /* with some guesswork about what your parameters mean... */
  39. :    win_ptr = OpenWindowTags(NULL,
  40. :                WA_Left,        20,
  41. :                WA_Top,         11,
  42. :                WA_Width,       400,
  43. :                WA_Height,      100,
  44. :                WA_CloseGadget, TRUE,
  45. :                WA_DepthGadget, TRUE,
  46. :                WA_DragBar,     TRUE,
  47. :                WA_SizeGadget,  TRUE,
  48. :                WA_IDCMP,       IDCMP_CLOSEWINDOW,
  49. :                WA_Title,       "The same window in C?",
  50. :                TAG_DONE);
  51.  
  52. The OpenW is a special function of E.  You can use the standard IDCMP, WFLG,
  53. etc flags instead of the hex values there.  Plus, you can do a normals tags-
  54. style openwindow without creating a structure beforehand.
  55.  
  56. : I think the C version is clearer, since the tags make it obvious what each
  57. : of the parameters mean, whereas figuring out what the parameters on your
  58. : function call meant took some educated guesses plus a hunting & fishing
  59. : expedition into the include files...
  60.  
  61. : >Easy window stuff. Add the fact that dos/exec/intuition/graphic libraries
  62. : >are built into the compiler and you don't have to worry about libraries, etc
  63. : >-or- closing anything (all handled) means it adds up to a wild programme.
  64.  
  65. : Most (all?) Amiga C compilers now include automatic library opening and
  66. : closing. And what happens when you need libraries other than those four?
  67.  
  68. There is of course the standard OpenLibrary call for other libraries.
  69.  
  70. I'd suggest looking at the language for a clearer idea of how it works.
  71.  
  72. : --
  73. : ...... Ross Smith (Wanganui, NZ) ...... alien@acheron.amigans.gen.nz ......
  74. : "I blame you for the moonlit sky and the dream that died with the Eagle's flight
  75. : I blame you for the moonlit nights when I wonder why are the seas still dry
  76. : Don't blame me, sleeping satellite"                              (Tasmin Archer)
  77. : --
  78.  
  79. --
  80. Chad Freeman                     mail: cjfst4+@pitt.edu
  81.             The end.
  82.  
  83.  
  84.  
  85.