🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Stephen J. Muir Fri, 07 Nov 1986 03:42
Destruction of an istream.
#381
Author: Stephen J. Muir
Date: Fri, 07 Nov 1986 03:42
12 lines
1056 bytes
I created a file using the ::open routine, then bound it to an istream:

fd = open ("file", 0);
istream myfile (fd, 0);

When the istream went out of scope, the file was not closed!  Is this a bug or
was it because I opened the file myself?
-- 
EMAIL:	stephen@comp.lancs.ac.uk	| Post: University of Lancaster,
UUCP:	...!mcvax!ukc!dcl-cs!stephen	|	Department of Computing,
Phone:	+44 524 65201 Ext. 4120		|	Bailrigg, Lancaster, UK.
Project:Alvey ECLIPSE Distribution	|	LA1 4YR
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads