Messages in this thread |  | | | Date | Sat, 3 Dec 2005 00:32:40 +0800 | | From | Coywolf Qi Hunt <> | | Subject | Re: Use enum to declare errno values |
| |
2005/12/3, Bill Davidsen <davidsen@tmr.com>: > Using enum doesn't *solve* problems, it does *allow* type checking, and > *prevent* namespace pollution. Use of typedef allows future changes, if > you use "struct XXX" you're stuck with it.
Yes, Greg KH had a lecture at a KS to encourage us to "stuck with it". And akpm once told me to always use struct foo * when I was trying to use task_t in argument list and struct task_struct *.for variable definitions.
What do you mean by `future change'? You constantly change the struct name or its members? I don't see any real problem hier.
> > -- > bill davidsen <davidsen@tmr.com> > CTO TMR Associates, Inc > Doing interesting things with small computers since 1979 >
-- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |