
EN: rebol.com -
rebol.org -
rebol.net -
FR: Rebol Documentation Project -
forum RebelBB -
rebol-france.org -
forum codeur -
Protège un mot ou un bloc de mots pour empêcher sa modification.
protect value
value - Le mot ou le bloc de mots à protéger (type: word! block!)
Prévient la modification d’un mot par une affectation. Toute tentative de modification génère une erreur.
test: "Ce mot est protégé!" protect 'test if error? try [test: "Essaye de changer test..."] [ print "N'a pas pu changer test!" ] N'a pas pu changer test!
print test unprotect 'test Ce mot est protégé!
unprotect - Déprotège un mot ou un bloc de mots.