Map
Index
Random
Help
Topics
th

Topic: access to components of a data object

topics > computer science > data > Group: access to data



Topic:
arrays
Topic:
access to objects by a path
Topic:
data record
Topic:
data type as constructors, selectors, and predicates
Topic:
index sequence for array access
Topic:
names defined by context
Topic:
notations for object access
Topic:
object-defined names
Topic:
packed data
Topic:
uniform reference to data
Topic:
variable as function that accesses an object's value

Summary

Accessing a component of a data object is like accessing an environment's component with the environment explicitly named. Dot notation or 'of' modifiers are frequently used. An interesting alternative is specifying components as a record extractor on the left hand side of a replace. Components may access syntactic attributes e.g., the number of characters in the variable's name. (cbb 5/80)
Subtopic: names in context of a record up

QuoteRef: wirtN1_1971 ;;54 in Pascal, WITH record-variable DO, all ids assumed first within record

Subtopic: allowing access to members creates an implementation of an abstract class up

Quote: if functions directly read or write members, they can make a class an implementation instead of an abstraction

Subtopic: protected members up

Quote: encapsulation should guard the integrity of the protected component or its owner [»alexRT1_2000]

Subtopic: members are function calls up

Quote: to the client, Dylan slots are indistinguishable from function calls
[»grayDN5_1998]

Related Topics up

Topic: arrays (58 items)
Topic: access to objects by a path (13 items)
Topic: data record (57 items)
Topic: data type as constructors, selectors, and predicates (20 items)
Topic: index sequence for array access (16 items)
Topic: names defined by context (36 items)
Topic: notations for object access (7 items)
Topic: object-defined names (15 items)
Topic: packed data (11 items)
Topic: uniform reference to data (34 items)
Topic: variable as function that accesses an object's value
(21 items)

Updated barberCB 3/04
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.