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


20.15.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 =
  struct
  {
    int i;
    long l;
  }

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

var f = Foo @ 128#B;