[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: draft-bierman-sming-ds-03.txt



At 11:17 AM 5/17/2002, Harrie Hazewinkel wrote:
>HI,
>>>>>....
>>>>   LEAF inHCPkts { .. } ::= 1
>>>>
>>>>   LEAF outHCPkts { .. } ::= 2
>>>>
>>>>   -- Octet counters removed to make example shorter
>>>>
>>>>   STRUCT timeData {
>>>
>>>Do you not want here a LEAF timeData that gets expanded to
>>>a STRUCT HostStatsTimeData??
>>
>>No -- the node here is not a LEAF -- it's a STRUCT.
>>LEAF nodes do not provide further containment (that's why they
>>are called LEAF nodes).
>
>Yes, but 'HostStatsTimeData' is already a struct.
>Maybe it is the same as you described earlier.

HostStatsTimeData is a TYPEDEF, and therefore has no instances
associated with it until it is used in a VAR declaration.
In other words, the descriptor 'createTime' cannot be referenced
unless it is used in a VAR declaration, e.g., in this example:
ipXStats.timeData.createTime.

Not sure if this is what you mean. Perhaps you mean that each
<object-decl> within an aggregate object should start with the
same keyword (I think NODE would be better than LEAF).  I'm
not sure if this makes the syntax better, but the syntax is not
finalized yet, so it's certainly an option.

>...


>Harrie

Andy