Manually allocating a File

Steven Schveighoffer schveiguy at yahoo.com
Wed Feb 21 15:25:22 UTC 2018


On 2/20/18 9:59 PM, Nicholas Wilson wrote:
> 
> FYI, File is a reference counted FILE* so theres not really any point of 
> heap allocating it.

More FYI, the reference counted payload is actually allocated on the C 
heap :) So you are wasting a lot of effort to do something that is 
already done.

-Steve


More information about the Digitalmars-d-learn mailing list