fieldAtIndex

abstract fun fieldAtIndex(index: Int): AvailObject

Extract a field from an object, using a one-based index into the field slots. This requires knowledge of the ObjectLayoutVariant, since the same field is at different indices in different variants.

Return

The field's value.

Parameters

index

The one-based index of the field in this object.