alan-if / alan-docs

Alan IF Documentation Project
https://git.io/alan-docs
Other
4 stars 0 forks source link

Manual: Explain VERB Definitions With Multiple IDs #128

Open tajmone opened 3 years ago

tajmone commented 3 years ago

In §3.11. VERBs, the Manual doesn't go into much details about how VERB definitions with multiple IDs work:

Verb take, get
  ...
End Verb take.

[...]

If there is more than one identifier in the list, as in the example above, this can be viewed as a shorthand for declaring identical checks and bodies for all the verbs in the list. This will create synonymous actions for different verbs at the level of the verb declaration. They may differ in implementation at other places, i.e. if they are declared in the same verb declaration on one level in an inheritance tree, they can still have different bodies on another level.

I think that this topic deserves a sub-section of its own: