|
|
Choosing A Webhost: |
Re: [Patch mp2] Solving module reloading problems (Apache::Reload) with Mod: msg#00400apache.mod-perl.devel
Joe Schaefer wrote: Geoffrey Young <geoff@xxxxxxxxxxxxxxxxxxx> writes: -1) Perl doesn't keep track of all the necessary bits to allow this cleanly ;-) 0) {modules} != {packages} so reloading a module will influence Yes, in the case of a module with many package definitions, you are in trouble 1) perl sometimes does compile-time tricks to avoid symbol lookups, Yup, also true. 2) symbols are occasionally aliased into other namespaces (eg Exporter), and those aliases won't get rebound once the new symbol definitions Well, partially true. It just means the existing aliases will be pointing to the _old_ values for that module. Kinda similar to an external module taking a ref to a sub in the package. ... I'm sure there's a whole bunch more issues that I'm overlooking (ithreads?) ... Simply put, Apache::Reload and friends are trying to wipe out a namespace even though Perl doesn't quite support that. It's doing it's best and I am not sure it could ever do a 100% clean job (thinking optimizer, for instance). There's always Symbol::delete_package, but it looks pretty -- -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [Patch mp2] Solving module reloading problems (Apache::Reload) with ModPerl::Util::clear_namespace(), Philippe M. Chiasson |
|---|---|
| Next by Date: | Re: [PATCH] 2.1 build foo, Philippe M. Chiasson |
| Previous by Thread: | Re: [Patch mp2] Solving module reloading problems (Apache::Reload) with ModPerl::Util::clear_namespace(), Joe Schaefer |
| Next by Thread: | Re: [Patch mp2] Solving module reloading problems (Apache::Reload) with ModPerl::Util::clear_namespace(), Joe Schaefer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |