[Vm-dev] preferred version to get 1st indexable field

Bert Freudenberg bert at impara.de
Sat Aug 19 17:56:56 UTC 2006

Am 19.08.2006 um 19:25 schrieb Martin Kuball:

> What is the preferred version to get the pointer to the first
> indexable field of an indexable object:
> 	dstStrPointer := interpreterProxy firstIndexableField: string.
> or
> 	dstStrPointer := interpreterProxy arrayValueOf: string.

Depends. #arrayValueOf: works only for non-pointer objects, but is  
faster. #firstIndexableField: handles everything, including mixed  
fixed/indexable field object formats.

- Bert -

More information about the Vm-dev mailing list