Next: , Previous: , Up: Mapping   [Contents][Index]

18.14.4 Mapping Structs

Struct and union types can be referred by name in a mapping (@) operation. For example, given a struct type Foo defined as:

type Foo =
    int i;
    long l;

we could get a mapped struct value of that type like this:

var f = Foo @ 128#B;