Next: Mapping Arrays, Previous: Mapping Simple Types, Up: Mapping [Contents][Index]
Struct and union types can be referred by name in a mapping
(@
) operation. For example, given a struct type Foo
defined as:
type Foo = struct { int i; long l; }
we could get a mapped struct value of that type like this:
var f = Foo @ 128#B;