[Exherbo-dev] Banning various global scope abuses

Ciaran McCreesh ciaran.mccreesh at googlemail.com
Mon Apr 27 19:51:28 BST 2009


On Fri, 17 Apr 2009 08:58:29 +0000
Bryan Østergaard <bryan.ostergaard at gmail.com> wrote:
> 2009/4/15 Ciaran McCreesh <ciaran.mccreesh at googlemail.com>:
> > How about a function called illegal_in_global_scope?
> >
> > Any calls to this function will die if we're in the metadata phase.
> > Exlib authors will be encouraged to make most of their utility
> > functions do this as their first line.
> >
> > That way we can get rid of norty people using toolchain-funcs
> > things at global scope.
> >
> > Also, how about we declare -r DEFAULT_* things after sourcing the
> > ebuild but before running any phase functions?
> >
> Works for me. It's in no way perfect as there's still going to be lots
> of bad things possible in global scope but hopefully it will catch the
> most common errors.

Ok, done.

Upgrade Paludis before you next sync.

-- 
Ciaran McCreesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.exherbo.org/pipermail/exherbo-dev/attachments/20090427/885b9700/attachment.pgp>


More information about the Exherbo-dev mailing list