From owner-freebsd-libh Tue Dec 4 10:48:53 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by hub.freebsd.org (Postfix) with ESMTP id BE12737B416; Tue, 4 Dec 2001 10:48:49 -0800 (PST) Received: from khan.anarcat.dyndns.org ([65.94.190.39]) by tomts10-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011204184848.FPED17034.tomts10-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Tue, 4 Dec 2001 13:48:48 -0500 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id AF9A01A68; Tue, 4 Dec 2001 13:53:23 -0500 (EST) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id CA14620ACD; Tue, 4 Dec 2001 13:50:23 -0500 (EST) Date: Tue, 4 Dec 2001 13:50:23 -0500 From: The Anarcat To: John Baldwin Cc: Libh Subject: Re: File constructors Message-ID: <20011204185023.GE2922@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , John Baldwin , Libh References: <20011204183451.GC2922@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ILuaRSyQpoVaJ1HG" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23.2i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ILuaRSyQpoVaJ1HG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue Dec 04, 2001 at 10:42:26AM -0800, John Baldwin wrote: >=20 > On 04-Dec-01 The Anarcat wrote: > > Needless to say, I don't know why or how libhfile would access > > File(int). It does not make any sort of sense. >=20 > Is it doing this to create a file on an already open file descriptor? Su= ch as > File stdin_file =3D File(0); ? Well, the File class is kinda odd. It has 2 constructors: File() and File(string). I don't know what File() is for, but in File(string), the string is a URL.=20 Yes a URL. So File is a "transparant-remote/local-file-access-facility". Only I wouldn't trust it to put my grocery memos. First, the use of mktemp in it, the general mess of the code, etc. Basically, File doesn't create any file unless you access one of the open* or create methods. I think File should be use to represent a file. A real file. But this is arguable. We have RealFile in libh (!!!). A class such as URL should be implemented instead. My problem right now is mostly with the syntax of C++ itself. Was mine correct? A. --ILuaRSyQpoVaJ1HG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjwNGu4ACgkQttcWHAnWiGdHNgCfQa3qzYif35nIgJBYcL7Hn+e8 5fwAn1KBW4szf7K5yiQNC5fH+2ydq9NQ =pyWj -----END PGP SIGNATURE----- --ILuaRSyQpoVaJ1HG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message