Thread overview |
---|
February 07, 2017 Why File.rawRead is @system? | ||||
---|---|---|---|---|
| ||||
Can't find a reason why it's not inferred @safe (on linux). Any idea? |
February 07, 2017 Re: Why File.rawRead is @system? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Tuesday, 7 February 2017 at 09:21:18 UTC, Kagamin wrote:
> Can't find a reason why it's not inferred @safe (on linux). Any idea?
Uh ? It's safe
Just tried
----
import std.stdio;
void main(string[] args) @safe
{
File f;
ubyte[] z;
z = f.rawRead(z);
}
----
And it compiles (DMD 2.073, Linux, X86_64)
|
February 07, 2017 Re: Why File.rawRead is @system? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Tuesday, 7 February 2017 at 09:21:18 UTC, Kagamin wrote:
> Can't find a reason why it's not inferred @safe (on linux). Any idea?
Perhaps you are trying to read as a type for which a conversion from string to it is @system? Not sure if that's possible.
|
Copyright © 1999-2021 by the D Language Foundation