Re: Use enum to declare errno values

From: Coywolf Qi Hunt
Date: Fri Dec 02 2005 - 11:32:05 EST


2005/12/3, Bill Davidsen <davidsen@xxxxxxx>:
> 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@xxxxxxx>
> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/