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

Re: Integer32 vs. INTEGER



On Mon, 20 Jan 2003, Andy Bierman wrote:
> I understand why the SMI and smilint discourages SYNTAX INTEGER
> vs. SYNTAX Integer32, but why is
>    SYNTAX Integer32 (1 .. 10)
> allowed but 
>    SYNTAX INTEGER (1 .. 10)
> is forbidden?

INTEGER (1..10) certainly is not forbidden by the SMI.  And
according to what I put in the current draft of the reviewer
guidelines, Integer32 (1..10) is preferred, but INTEGER (1..10)
is acceptable.

> This seems like a CLR written for the benefit of MIB compilers.

I think it's more like a schoolmarm nagging at you to reserve
INTEGER for enums only, to please those who are anal about matters
of style :-)  If anything, it's probably more work for the MIB
compiler to generate the warning.

I don't care much about this.  I'm willing to use Integer32 (1..10)
if someone tells me to, and I'm perfectly happy if you want to put
INTEGER (1..10) in your MIB module.

> 
> Andy
> 

//cmh