Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys
"Perry E. Metzger" <perry%piermont.com@localhost> writes:
> christos%astron.com@localhost (Christos Zoulas) writes:
>> Simon Burge <simonb%wasabisystems.com@localhost> wrote:
>>>
>>>Should these names have io_ prefixes? The current names are a bit
>>>"generic", and could cause issues in code that includes <sys/iostat.h>.
>>>
>> They should. Let's do it.
>
> Er, we live in an age of modern compilers -- the namespace inside
> structs is struct specific. Why do struct members need prefixes like
> io_?
Aside from the macro-related reasons, it can also act
as a check against getting one's structs mixed up.
--
let p = List.map (fun c k _-> k (print_char c))
in List.fold_right (fun f a _ -> f a) (List.map2
(fun f g k -> f (g k) ()) (p ['J';'d';'D';'v';'s'])
(p ['e';' ';'a';'i';'\n'])) ignore ()
Home |
Main Index |
Thread Index |
Old Index