We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This compiles but crashes with EBADF
const std = @import("std"); const io = std.io; pub fn main() !void { const stdout_file = try io.getStdOut(); var stdout = stdout_file.outStream().stream; try stdout.print("hello world\n"); }
Changing to the following fixes the problem
const stdout = &stdout_file.outStream().stream;
Update: The following causes a compile time error instead
const stdout = stdout_file.outStream().stream;
This might be related to #2428 I’m on Linux x86_64, Ubuntu 18.04, Zig Master
The text was updated successfully, but these errors were encountered:
@andrewrk on IRC mentioned that this is a duplicate of #591
Sorry, something went wrong.
No branches or pull requests
This compiles but crashes with EBADF
Changing to the following fixes the problem
Update: The following causes a compile time error instead
This might be related to #2428
I’m on Linux x86_64, Ubuntu 18.04, Zig Master
The text was updated successfully, but these errors were encountered: