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

Re: Some additional obscure questions...



HI,

It is a "better example", not a better "coding convention". It is
a better example because it makes a forward reference to parentOfA.
A MIB compiler that didn't support forward references would
support the first example, but not the second. Thus, the second
example tells us more about the capabilities of the MIB compiler
than the first.
 
At 03:12 AM 1/31/2003 -0500, Bob Natale wrote:
>At 1/31/2003:12:50 AM, David T. Perkins wrote:
>
>Hi Dave,
>
>>> ...
>>>   AnotherModule DEFINITIONS ::=
>>>   BEGIN
>>>      IMPORTS
>>>         parentOfA FROM NON-AMBIGUOUS-MIB
>>>         a FROM M1 { parentOfA 1 }
>>>         a FROM M2 { parentOfA 2 }
>>       ...
>>    END
>>
>>or better yet...
>>   AnotherModule DEFINITIONS ::=
>>   BEGIN
>>      IMPORTS
>>         a FROM M1 { parentOfA 1 }  -- a forward reference
>>         a FROM M2 { parentOfA 2 }
>>         parentOfA FROM NON-AMBIGUOUS-MIB
>>       ...
>>   END
>
>Why do you consider the second form better
>than the first?
>
>Cheers,
>
>BobN 
Regards,
/david t. perkins