Notepad

version 2 by Jim Aikin

  • Home page
  • Beginning
  • Previous



  • Section 8 - Protecting and Unprotecting

    Protecting is an action out of world applying to one thing. Understand "protect [something]" as protecting.

    Check protecting:
        if the noun is not a notepad:
            say "That action can't be used with [the noun]." instead;
        otherwise if the noun is non-edit-allowing:
            say "[The noun] is already write-protected." instead.

    Carry out protecting:
        now the noun is non-edit-allowing.

    Report protecting:
        say "You have write-protected the text on [the noun]."

    Unprotecting is an action out of world applying to one thing. Understand "unprotect [something]" as unprotecting.

    Check unprotecting:
        if the noun is not a notepad:
            say "That action can't be used with [the noun]." instead;
        otherwise if the noun is edit-allowing:
            say "[The noun] is not currently write-protected." instead.

    Carry out unprotecting:
        now the noun is edit-allowing.

    Report unprotecting:
        say "[The noun] is no longer write-protected."

    Notepad ends here.