Operations on Tuples
Once we have a record, we need to interpret it as a tuple ...
Tuple t = mkTuple(rel, rec)
- convert record to tuple data structure for relation
rel
Once we have a tuple, we want to examines its contents ...
Typ getTypField(Tuple t, int i)
- extract the
i 'th field from a Tuple as a value of type Typ
E.g. int x = getIntField(t,1) , char *s = getStrField(t,2)
|