1.75 <GSimplePermission>

Class: <GSimplePermission>

It derives from <GPermission>.

<GSimplePermission> is a trivial implementation of <GPermission> that represents a permission that is either always or never allowed. The value is given at construction and doesn’t change.

Calling permission:acquire? or permission:release? on a <GSimplePermission> will result in errors.

Procedures

Procedure: simple-permission:new allowed ⇒ %return

Creates a new <GPermission> instance that represents an action that is either always or never allowed.

allowed

Passed: a boolean.

#t if the action is allowed

%return

Returned: a <GPermission>.

the <GSimplePermission>, as a <GPermission>