Table of Contents
Action! values represent datatype "methods" in the Red internal OO model. They are written in Red/System and define a fixed interface that each datatype may, or may not, provide an implementation for. Not all datatypes support all actions, but they all share the same set of possible actions.
Actions are used like normal function values.
Action! is a member of the following typesets: any-function!, default!
Action values can be compared for sameness and equality with same?, ==, equal?, strict-equal?, not-equal?, <>.
Use action? to check if a value is of the action! datatype.
>> action? :to
== trueUse type? to return the datatype of a given value.
>> type? :to
== action!