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