Next: , Previous: , Up: CType   [Index]


1.52.3 CType: accessing

alignof

Answer the size of the receiver’s instances

arrayType: size

Answer a CArrayCType which represents an array with the given size of CObjects whose type is in turn represented by the receiver

cObjectType

Answer the CObject subclass whose instance is created when new is sent to the receiver

new: anInteger

Allocate a new CObject with room for anInteger C objects of the type (class) identified by the receiver. It is the caller’s responsibility to free the memory allocated for it.

ptrType

Answer a CPtrCType which represents a pointer to CObjects whose type is in turn represented by the receiver

sizeof

Answer the size of the receiver’s instances

valueType

valueType is used as a means to communicate to the interpreter the underlying type of the data. For anything but scalars, it’s just ’self’