Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2010

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

Search the Archive

Re: SetAttributes for entire package

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

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

  • 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