Additions:
See iPhone
Deletions:
TBD
Additions:
Fails primitive call if returned value is null
Windows version returns primitiveFail(), but primitiveFail() has no explicit return value, could be zero, or garbage depending on compiler...
sqInt attributeSize(sqInt indexNumber)
Parms: indexNumber, negative, positive, or zero.
return: size of string from getAttribute(indexNumber).
From: Interpreter
Why:
To figure out how much space to reserve to later place the attribute in.
Responsibility:
To call getAttribute: and then calculate the string size
To get an attribute we call getAttribute twice, once to get the size, once to get the number, a bit ugly
MacIntosh
os-9/OSXCarbon
Cocoa:
TBD
iPhone
Unix
Windows
BUGS