View · Index

Multivalued slots

Since slot projects is multivalued, we can add a value to the list of values the add subcommand.

Project project1  -name XOTcl   -description "A highly flexible OO scripting language"

p1 projects add ::project1
p1 projects add some-other-value
 

The value of the instance variable project of Person p1 is now the list {some-other-value ::project1}.