Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: Integer Sequence Expressions Up: Expressions Previous: Assignment Expressions

Indexing

The indexing operators are [] and ``.". The [] operator is used to index a vector or an array with a numeric subscript, or a record with a string subscript. The result of the indexing for a vector or array operand has the same type as the initial vector or array. A record has a type which is either that of the specified field, or record if more than one field is specified. (See § 3.1.4, § 3.4.4, § 3.4.3, § 3.6, and § 3.7.2 for details.)

The ``." operator retrieves a particular field from a record.

    a.name
is equivalent to
    a["name"]
(See § 3.4.2, page [*].)


next up previous contents index
Next: Integer Sequence Expressions Up: Expressions Previous: Assignment Expressions   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15