Field Selection



next up previous contents index
Next: Routine Instantiation Up: Expressions Previous: Instance Variable Selection

Field Selection

The form

<expr> "." <idn>
allows fields to be selected from "record"s and "struct"s. The expr must evaluate to a "record" or "struct" object, and the idn must name one of the fields of the object; the result is the object stored in that field.



theta-questions@lcs.mit.edu