[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Saner mouse in lynx with ncurses
From: |
Larry W. Virden |
Subject: |
Re: lynx-dev Saner mouse in lynx with ncurses |
Date: |
Wed, 25 Nov 1998 06:13:20 -0500 (EST) |
From: address@hidden
>> Just as a matter of programming style, would this not be better implemented
>> as an enum?
>
>maybe/maybe not - storing enum values as int's doesn't always work well
>on older compilers (which Lynx builds on). If I saw it as an enum, I'd
>have to take that into consideration.
The other thing is that, sad to say, enum's just do not give you any
advantage in C. In general, C doesn't do any kind of error checking for
enums, so it turns out to be the equivalent of defines anyways.
--
Larry W. Virden <URL:mailto:address@hidden>
<URL:http://www.purl.org/NET/lvirden/> <*> O- "No one is what he seems."
Unless explicitly stated to the contrary, nothing in this posting should
be construed as representing my employer's opinions.