Structs

Basics

The primary data structure in nifty is the struct.

struct

Default Values

struct_defaults

Pointer Ownership

Adding @ to the end of a pointer type type indicates that the object pointed to is owned by the struct and should be deleted when the struct is deleted.

struct_ownership

Attributes

Structs can also have attributes.

struct_attribs