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: undeclared identifier: 'shallowCopy'`` on all examples #50

Open
general-rishkin opened this issue Jan 24, 2023 · 2 comments
Open

Comments

@general-rishkin
Copy link

All the examples I try give the following error:

neo/dense.nim(90, 14) Error: undeclared identifier: 'shallowCopy'

I am using Nim Compiler Version 1.9.1 .

@andreaferretti
Copy link
Owner

See this PR. The issue is: shallowCopy was kind of needed to have matrices that share storage (think of taking a row, or the transpose of a matrix, without making copies). So I have not accepted the PR yet.

I can probably work arund this with the shallow pragma, but it would take a while... I am no actively using Nim right now, so this kind of language level change is rather disruptive. If you want to start from that PR and ensure that copies are actually shallow, I would be happy to accept it

@NahuelUTNPigui
Copy link

NahuelUTNPigui commented May 17, 2024

As someone who has the same problem, an easy solucion is write --gc:refc as option, something like nim c --gc:refc -r main.nim
PD: you can use this command nim c --mm:refc -r main.nim too

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

3 participants