[Ffmpeg-devel] [PATCH] video4linux2 input (original) (raw)
Erik Slagter erik
Tue Feb 7 11:27:42 CET 2006
- Previous message: [Ffmpeg-devel] [PATCH] video4linux2 input
- Next message: [Ffmpeg-devel] [PATCH] video4linux2 input
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 2006-02-06 at 19:25 +0200, Oded Shimon wrote:
> The one good thing with enums is that debugger can show the symbolic names. > Apart from that, they are semantically equivalent to ints IIRC, with the > addition of polluting the namespace. I rarely use them (or debuggers).
They are good only for switch/case stuff IMO. Not really useful for anything else.
Okay, let's turn it around. Why would you want to use #define's instead, then?
And yes, indeed, the use of enums with cases is very useful imho. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2771 bytes Desc: not available URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060207/0390b0bc/attachment.bin>
- Previous message: [Ffmpeg-devel] [PATCH] video4linux2 input
- Next message: [Ffmpeg-devel] [PATCH] video4linux2 input
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]