temp file

Denis Shelomovskij verylonglogin.reg at gmail.com
Sat Feb 18 00:58:20 PST 2012


18.02.2012 6:59, bioinfornatics пишет:
> hi,
> when i try to use tmpfile from std.stdio i get this error
>> char 0x00ad not allowed in identifier
>
> I use dmdfe 2.058, i do just:
> File tmp = tmpfile();
>

Full source, please. And you should use `File.tmpfile()` instead of 
`tmpfile()` (unless you are already in `with(File)`?). This compiles:
---
import std.stdio;

void main() {
     with(File) File tmp = tmpfile();
}
---

Anyway, 0x00ad is 'SOFT HYPHEN' (not a '_' char) and is valid but 
ignorable in a Java identifier. Looks like your editor added it.
http://www.fileformat.info/info/unicode/char/ad/index.htm

By the way, you just inspired me to fill this:
http://d.puremagic.com/issues/show_bug.cgi?id=7537


More information about the Digitalmars-d-learn mailing list