Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In programming, a
tag is an argument to a subroutine that determines other arguments
passed to it, which is used as a way to pass indefinite number of tagged
parameters to the subroutine; notably, tags are used for a number of
system calls in AmigaOS v2.0 and onwards.In earlier versions of AmigaOS,
if a system call required setting a large number of parameters, instead
of passing them as function arguments, the function would require a
pointer to a structure that holds the arguments (for example,
intuition.library's OpenWindow() required struct NewWindow with 17
different parameters).Note how the code without tags is obscure (for
example, 0, 1 define window colors) while the code with tags is
self-documenting. Note also that fewer parameters have to be defined
with tags than are in the structure, as OpenWindowTags will fall back to
default parameters.