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

error: special identifier '_' ignored #195

Open
alperyilmaz opened this issue Oct 21, 2023 · 3 comments
Open

error: special identifier '_' ignored #195

alperyilmaz opened this issue Oct 21, 2023 · 3 comments

Comments

@alperyilmaz
Copy link

alperyilmaz commented Oct 21, 2023

I tried the nested matrix transposition and when I compiled it I got the following error:

/home/user/.nimble/pkgs2/weave-0.4.0-91b8ef3189383a89f75e3c35c64687b8a67bf549/weave/runtime_fsm.nim(228, 12) Error: the special identifier '_' is ignored in declarations and cannot be used

my nim version is 2.1.1, I'm on Linux.

edit: I dont get error message in Nim stable version1.6.10 so, this error involves devel version of Nim, can be ignored.. just consider this issue as a heads up..

@mratsim
Copy link
Owner

mratsim commented Dec 9, 2023

#197 should help tracking the issue

@PhilippMDoerner
Copy link

PhilippMDoerner commented Dec 19, 2023

Just for reference, the very first example on the README

import weave

proc fib(n: int): int =
  # int64 on x86-64
  if n < 2:
    return n

  let x = spawn fib(n-1)
  let y = fib(n-2)

  result = sync(x) + y

proc main() =
  var n = 20

  init(Weave)
  let f = fib(n)
  exit(Weave)

  echo f

main()

Is also affected.

/home/philipp/.nimble/pkgs2/weave-0.4.0-91b8ef3189383a89f75e3c35c64687b8a67bf549/weave/runtime_fsm.nim(228, 12) Error: the special identifier '_' is ignored in declarations and cannot be used

@Miqueas
Copy link

Miqueas commented Jan 13, 2024

I have the same problem. But I have Nim 2.0.2 on Windows. I fixed it by just replacing that "_" with a "w" lmao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants