Re: Other Globals in %once
David Wheeler <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Apr 30, 2004, at 5:36 PM, Jonathan Swartz wrote: > I have no idea what this means. Not allowing $m and other globals? Do > you > mean, running inside strict? Or are you just referring to the problem > caused > by loading a component before the globals are defined? No, I mean that $m is available but undefined in %once blocks. If what Dave tells me is correct, then other globals created by allow_globals and set_global() are already assigned before the %once block executes, so ignore the "other globals" part. So yes, I'm referring to loading the component before the globals are defined. $m and $r are undefined in %once blocks, and I'm not sure the reasons for that are compelling enough. Seems to me that the Perl way is to allow the flexibility to use them, with the caveats well documented. IOW, give Masonites enough rope to shoot themselves in the foot. ;-) Regards, David ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click