.

x.k -- the same as x#(global k), i.e., treat k as a global symbol and provide the value stored in the hash table x under the key k .

May also be used in an assignment.

Warning: the symbol k could occur in the local scope, obscuring the global symbol k one really wants. Here is an example.

     i1 = x = new MutableHashTable;
     
     i2 = x.k = 444
     
     o2 = 444
     
     i3 = (k -> x.k = 555) ();
     
     i4 = x.k
     
     o4 = 555
     
     i5 = peek x
     
     MutableHashTable{k => 555}

See also #, .?, and global.

Go to main index.

Go to concepts index.