Advertisement
flarn2006

My Mathematica initialization file

Feb 12th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. (** User Mathematica initialization file **)
  2.  
  3. (** Make the Locked attribute unusable (I don't allow crap like this.) **)
  4. Unprotect[Locked]
  5. Locked::usage = "Locked is an attribute which, once assigned, prevents modification of any attributes of a symbol. Good luck assigning it in the first place though!\nNice try, Wolfram, but I keep a copy of Mathematica 8 for a reason. ;-)"
  6. Locked = Sequence[]
  7. (** But wait a minute, couldn't a package just do ClearAll[Locked]? **)
  8. (** Well, I guess this attribute still has one good use... **)
  9. Block[{Locked}, Attributes[Locked] = {Protected, Locked}]
  10. (** ...and Wolfram is HoistByHisOwnPetard. **)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement