Joy Online Manual

NAME
objc:typedef - Define a new type

SYNOPSIS

objc:typedef type name

DESCRIPTION
Joy allows you to define new types in a manner analogous to the C typedef statement.

The following primitive types are available in Joy:

Objective-C Joy
id id
Class Class
SEL SEL
char * STR or {char *}
void void
BOOL BOOL
char char
unsigned char uchar
short short
unsigned short ushort
int int
unsigned int uint
long long
unsigned long ulong
long long longlong
unsigned long long ulonglong
float float
double double
type * {type *}
rtype (*type) (type1, ...) {void *}
type [n] {type n}
union tag {type a; ...} {union type ...}
struct tag {type a; ...} {struct type ...}
type : m; type : n; ... {bitfield m n ...}
enum tag {const, ...} int

EXAMPLES

tcl> objc:typedef {char 20} string20
tcl> objc:typedef {struct NSPoint float} circle

SEE ALSO

objc:decode
objc:encode
objc:expandType
objc:info
objc:isValue
objc:loadPrecomp

KEYWORDS
type

Index