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