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...
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...
Methods Arguments Default arguments Type Restrictions Overloading Returning a value Return type Methods To avoid duplication of the same message, instead of using a variab...
Methods Arguments Default arguments Type Restrictions Overloading Returning a value Return type Methods To avoid duplication of the same message, instead of using a variab...
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...
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...