std.stdio.tmpfile() return shared(_IO_FILE)* and not File

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 24 11:16:11 PDT 2014


On Sun, 24 Aug 2014 19:56:24 +0200
simendsjo via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> What is going on here?
std.stdio does this: 'public import core.stdc.stdio'.
and in core.stdc.stdio we can find this:
@trusted FILE* tmpfile();
and FILE as an alias for shared(_IO_FILE), declared in
'core.stdc.stdio' too.

to get 'File', call 'File.tmpfile()'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140824/f7b56b51/attachment.sig>


More information about the Digitalmars-d-learn mailing list