mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
fix, file handle must not be visible.
to change directly the handle could lead to leak the handle in `close()` because `isopen` was not defined like it's the case when the `file()` setter is properly called. possible breakage: no property...for class... CFile.file() must be called instead.
This commit is contained in:
parent
dd8f5ffe45
commit
ce17abef87
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ import std.algorithm;
|
|||
* A Stream wrapper for a C file of type FILE*.
|
||||
*/
|
||||
class CFile : Stream {
|
||||
FILE* cfile;
|
||||
protected FILE* cfile;
|
||||
|
||||
/**
|
||||
* Create the stream wrapper for the given C file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue