up previous next
tagged

tag an object for pretty printing

Syntax
tagged(E: OBJECT, S: STRING): TAGGED(S)

Description
This first function returns the object E, tagged with the string S. Tagging is used for pretty printing of objects. See the reference listed below.

Example
/**/  L := [1,2,3];
/**/  M := tagged(L,"MyTag");
/**/  type(L);
LIST

/**/  type(M);
TAGGED("$TopLevel.MyTag")

/**/  type(untagged(M));
LIST

See Also