home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11779 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.7 KB

  1. Path: sparky!uunet!mcsun!corton!dmi.ens.fr!basilic!espie
  2. From: espie@basilic.ens.fr (Marc Espie)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ASL and GadTools libraries.
  5. Message-ID: <1992Jul29.134051.28073@ens.fr>
  6. Date: 29 Jul 92 13:40:51 GMT
  7. References: <1992Jul27.191144.25772@wam.umd.edu> <33732@cbmvax.commodore.com> <1992Jul28.172522.23855@wam.umd.edu>
  8. Sender: news@ens.fr (USENET News System)
  9. Organization: LIENS, ENS, 45 rue d'Ulm, Paris (France)
  10. Lines: 42
  11. Nntp-Posting-Host: basilic.ens.fr
  12.  
  13. In article <1992Jul28.172522.23855@wam.umd.edu> stark@wam.umd.edu (Mike Stark) writes:
  14. >In article <33732@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes:
  15. >> In article <1992Jul27.191144.25772@wam.umd.edu> I write:
  16. >>> I wish the autodocs said this was OK because I really want to let the user
  17. >>> of my program close windows while the ASL requester is active.
  18. >>
  19. >> The autodocs WON'T say it's OK because it's NOT.  If you want to close
  20. >> the window while the requester is active, then don't pass your window
  21. >> in as a reference window.  It's pretty simple.
  22. >
  23. >Well, I think you misunderstood me a little bit.  I realize that what I
  24. >am doing is not a good idea.  However, I have a program that has several
  25. >windows open on one IDCMP one of which may be the ASL file requester.  I
  26. >wanted to have one process service all of these windows and I thought that
  27. >the ASL hook function provided a way to do that while the ASL requester was
  28. >alive.  Unfortunately, it is clear from the documentation (And now painfully 
  29. >clear that the documentation represents not only the fact but also the 
  30. >intent of C/A) that I will have to fork off another process just to open 
  31. >up the ASL requester.
  32.  
  33.  
  34. From my point of view, this is a BIG design error in the ASL
  35. requester.  That hook function mechanism is not as useful as it could
  36. be. For instance, you can just get messages from Intuition. If you want
  37. to write a program that takes external events into accounts (timer
  38. stuff and others), you can't get them through that hook function. You
  39. have to fork another process anyway. The biggest problem for me is that
  40. we get away from the event-driven programming model: wait for next
  41. event, process it, and loop. We have to get several processes to do
  42. this kind of thing.  This tends to get messy, as process
  43. synchronization is not exactly trivial.  You have to have got through
  44. lots of mistakes before you get it right, since these bugs are sooooo
  45. unpredictable.
  46.  
  47. Well, the documentation says you can't, so I shan't. 
  48. But I sure hope this will change in the near future !
  49.  
  50. -- 
  51.      Marc Espie (espie@ens.fr)
  52. `In Unix, no one can hear you scream.
  53. Sys V R4, the final battle. 
  54. The aliens are ALREADY among us.'
  55.