put_d

Command: put_d


Synopsis
<> /key val -> <>

File
sli/slidict.cc
Parameters

dict - a dictionary
/key - a literal name
val - an object of arbitrary type

Diagnostics

No errors are raised.

Author

Marc-Oliver Gewaltig

Description

put_d adds the pair /key value to the supplied dictionary.
If /key was already defined in that dictionary its old
value is lost.

In contrast to PostScript dictionaries only literal names can
be used as keys in a dictionary.

Examples


userdict /a 1 put_d
<< >> /a 1 put_d