home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / perl / 7570 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.2 KB  |  29 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!usc!news.cerf.net!netlabs!lwall
  3. From: lwall@netlabs.com (Larry Wall)
  4. Subject: Re: Package & Namespace Question
  5. Message-ID: <1992Dec21.195146.10065@netlabs.com>
  6. Keywords: package, inheritance, perl 5
  7. Sender: news@netlabs.com
  8. Nntp-Posting-Host: scalpel.netlabs.com
  9. Organization: NetLabs, Inc.
  10. References: <BzD4Hw.AG8@da_vinci.it.uswc.uswest.com> <1992Dec17.210221.21875@netlabs.com> <163@eiffel.eiffel.com>
  11. Date: Mon, 21 Dec 1992 19:51:46 GMT
  12. Lines: 15
  13.  
  14. In article <163@eiffel.eiffel.com> ram@eiffel.com (Raphael Manfredi) writes:
  15. : Now, did I do a good job in convincing you?
  16.  
  17. Why can't a program just declare an ANY package if it wants it?  It
  18. seems to me that the purpose of package main is to be a hodgepodge,
  19. while the purpose of an ANY package is to be a peg on which to hang a
  20. (hopefully very minimal) number of global methods.  Some problems are
  21. better solved with hodgepodges, and some with tightly controlled object
  22. semantics.  I don't want to confuse the two.  It's not as if an
  23. object's method can't get at a main subroutine if it wants to
  24. anyway.
  25.  
  26. Perhaps I ought to rename package main as package GLUE...
  27.  
  28. Larry
  29.