Date: Tue, 4 Dec 2001 13:50:23 -0500 From: The Anarcat <anarcat@anarcat.dyndns.org> To: John Baldwin <jhb@FreeBSD.org> Cc: Libh <freebsd-libh@freebsd.org> Subject: Re: File constructors Message-ID: <20011204185023.GE2922@shall.anarcat.dyndns.org> In-Reply-To: <XFMail.011204104226.jhb@FreeBSD.org> References: <20011204183451.GC2922@shall.anarcat.dyndns.org> <XFMail.011204104226.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204185023.GE2922>
