Skip to content
New issue

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

`static: writeFile` doesn't work anymore since `system refactorings` #10585

Closed
timotheecour opened this issue Feb 6, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@timotheecour
Copy link
Contributor

commented Feb 6, 2019

/cc @Araq
before 0036014 from today:

nim c -r main.nim
works

as of 0036014:

/Users/timothee/git_clone/nim/timn/tests/nim/all/t0203.nim(5, 1) template/generic instantiation from here
/Users/timothee/git_clone/nim/Nim/lib/system/io.nim(463, 20) Error: cannot 'importc' variable at compile time
var p: pointer = fopen(filename, FormatOpen[mode])
^

main.nim:

proc main()=
  static: writeFile("/tmp/z01.txt", "foo2")
  static: echo "/tmp/z01.txt"

main()

@timotheecour timotheecour self-assigned this Feb 6, 2019

timotheecour added a commit to timotheecour/Nim that referenced this issue Feb 6, 2019

timotheecour added a commit to timotheecour/Nim that referenced this issue Feb 6, 2019

timotheecour added a commit to timotheecour/Nim that referenced this issue Feb 6, 2019

timotheecour added a commit to timotheecour/Nim that referenced this issue Feb 7, 2019

@Araq Araq closed this in 84d10f7 Feb 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.