Comment 12 for bug 1935037

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

> I would prefer to traverse the "normal" structure way with '.' instead of

'.' is used to traverse a Structure. '->' is selecting a member of a Union.

https://mdavidsaver.github.io/pvxs/value.html#_CPPv4N4pvxs5ValueixERKNSt6stringE

> Attempt to access a descendant field.
>
> Argument may be:
>
> name of a child field. eg. “value”
> name of a descendant field. eg “alarm.severity”
> element of an array of structures. eg “dimension[0]”
> name of a union field. eg. “->booleanValue”
>
> These may be composed. eg.
>
> “dimension[0].size”
> ”value->booleanValue”