Joy Online Manual

NAME
objc:newPtr - Allocate memory

SYNOPSIS

objc:newPtr type

DESCRIPTION
Allocates memory for the given type and returns the pointer.

EXAMPLE
Allocates 100 bytes.

joy> set p [objc:newPtr {char 100}]
char 100@0x751b8

SEE ALSO

objc:delPtr
objc:typedef

KEYWORDS
allocation, pointer

Index