Macros Scope Interpolation Macro calls parse_type Modules and classes Conditionals Iteration Variadic arguments and splatting Type information The top level module Method...
Enums Flags enums Enums from integers Methods Usage Enums Note This page is for Crystal enums . For C enums, see C bindings enum . An enum is a set of integer values, wher...
offsetof offsetof An offsetof expression returns the byte offset of an instance variable in a struct or class type. It accepts the type as first argument and the instance vari...
Comments Comments Comments start with the # character. All following content up to the end of the line is part of the comment. Comments may be on their own line or follow after...
Comments Comments Comments start with the # character. All following content up to the end of the line is part of the comment. Comments may be on their own line or follow after...
Comments Comments Comments start with the # character. All following content up to the end of the line is part of the comment. Comments may be on their own line or follow after...
About this guide About this guide This is a formal specification of the Crystal language. You can read this document from top to bottom, but it’s advisable to jump through sect...
About this guide About this guide This is a formal specification of the Crystal language. You can read this document from top to bottom, but it’s advisable to jump through sect...
About this guide About this guide This is a formal specification of the Crystal language. You can read this document from top to bottom, but it’s advisable to jump through sect...
C bindings C bindings Crystal allows you to bind to existing C libraries without writing a single line in C. Additionally, it provides some conveniences like out and to_unsafe...