Locked
The attributes of Locked
symbols cannot be modified:
Attributes[lock] = {Flat, Locked};
SetAttributes[lock, {}]
ClearAttributes[lock, Flat]
Attributes[lock] = {}
Attributes[lock]
However, their values might be modified (as long as they are not Protected
too):
lock = 3