From owner-freebsd-hackers Wed Dec 9 08:51:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA01809 for freebsd-hackers-outgoing; Wed, 9 Dec 1998 08:51:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bright.fx.genx.net (bright.fx.genx.net [206.64.4.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA01804 for ; Wed, 9 Dec 1998 08:51:32 -0800 (PST) (envelope-from bright@hotjobs.com) Received: from localhost (bright@localhost) by bright.fx.genx.net (8.9.1/8.9.1) with ESMTP id LAA43113; Wed, 9 Dec 1998 11:54:59 -0500 (EST) (envelope-from bright@hotjobs.com) X-Authentication-Warning: bright.fx.genx.net: bright owned process doing -bs Date: Wed, 9 Dec 1998 11:54:59 -0500 (EST) From: Alfred Perlstein X-Sender: bright@bright.fx.genx.net To: rssh@grad.kiev.ua cc: hackers@FreeBSD.ORG Subject: Re: inclusion of system headers. In-Reply-To: <366EC309.4E81E900@Shevchenko.Kiev.UA> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 9 Dec 1998, Ruslan Shevchenko wrote: > > Question: > > Are exists some reasons, for existing next situation: > > A.h refer to something, including in B.h, but A.h not include B.h . > > I think, this is design bug. > > In FreeBSD such situation, at least with and , > which breaks clear compiling of erlang (which yesteday was releasing > as open source with NPL-style license). > > I thought the same too, however it was explained to me that several people spent a long time unwinding the headers. >From what i guess the problem of chaning the headers like linux does is: a) you may wish to redefine certain types for odd/masochistic reasons. b) it slows compile time signifigantly c) it's a solution for people who don't really know what goes where, and FreeBSD should encourage good programming practicies. Basically if you RTFM on functions and read most programming texts they will explain what to include and where. Lastly, why not have #include just suck in the whole include/* ? doesn't sound too apetizing now does it? :) Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com -- There are operating systems, and then there's FreeBSD. -- http://www.freebsd.org/ 3.0-current To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message