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


1.36.8 CObject: conversion

castTo: aType

Answer another CObject, pointing to the same address as the receiver, but belonging to the aType CType.

narrow

This method is called on CObjects returned by a C call-out whose return type is specified as a CType; it mostly allows one to change the class of the returned CObject. By default it does nothing, and that’s why it is not called when #cObject is used to specify the return type.

type

Answer a CType for the receiver