Project

General

Profile

Feature #220

Updated by Eugen Wissner 4 days ago

Attributes share the general syntax with traits: an attribute name is prefixed by `#` and is followed by arguments. The arguments are type expressions as in the case with traits, but value expressions. 

 `#aligned(16)`. `#align(16)`. 

 The first attribute that should be supported is `#aligned`. `#align`. Alignment can be specified for field and variable declarations. Declaration names are prefixed with attributes. If multiple declarations are separated by a comma (e.g. multiple fields with the same type) the attributes apply only to the immediately following name.

Back