MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: SetAttributes for entire package

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111341] Re: SetAttributes for entire package
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Wed, 28 Jul 2010 02:54:08 -0400 (EDT)
  • References: <i2mhck$3ct$1@smc.vnet.net>

This would be quite simple if SetAttrubutes accepted string
arguments.  If it did then you could simply execute

SetAttributes[#,{Locked, ReadProtected}]&[Names["mycontext`*]]

where mycontext is your package context.  Howe er SetAttributes does
not work this way (but it should...).

So one has to work around this.  I had to do this years ago when
creating a password protection scheme for http://scientificarts.com/worklif=
e


  • Prev by Date: TeXForm in 7.0.0
  • Next by Date: FindRoot with NDSolve inside of it doesn't work
  • Previous by thread: SetAttributes for entire package
  • Next by thread: Re: SetAttributes for entire package