In the design of a DSN converter, I need to build a list of objects, in
this case VIA's. Instead of storing the individual data members in
multiple arrays, I see that I can define (arrays of) object types.
Starting simple, according to the manual:
UL_VIA xyz; works fine as definition.
However, I have found no way to write data in the object, e.g. xyz.start
= 1; gives an error. Reading xyz.start gives ( correctly) an error as
the object variable is invalid (not initialized).
How do I get values in an object variable?
The example in the manual:
UL_SIGNAL signals[];
...
UL_SIGNAL s = signals[0];
printf("%s", s.name);
suggest it is somehow possible...
Should this take place in a higher level context, for instance within a
UL_SIGNAL context?
Thanks for a suggestion.
Regards, Robert