Comment 3 for bug 1935037

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

Also, I've taken advantage of this restriction with PVXS to allow an extended syntax for traversing into structures, unions, and arrays. eg.

> pvxs::Value top;
> top["value[5]->ufld1"] = ...

This takes a 'top' Structure, traverses to the 'value' field, which is an array of Unions. Then indexing the 5th element, and then accessing/selecting the 'ufld1' member of the Union.

Right now my parsing doesn't handle a Structure field named "in-valid", although it could (no following '>').