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

undeclared identifier: 'IndexDefect' #1

Closed
wokibe opened this issue Nov 3, 2020 · 5 comments
Closed

undeclared identifier: 'IndexDefect' #1

wokibe opened this issue Nov 3, 2020 · 5 comments

Comments

@wokibe
Copy link

wokibe commented Nov 3, 2020

clapfn.nim does not compile:
src/clapfn.nim(209, 14) Error: undeclared identifier: 'IndexDefect'

replacing IndexDefect by IndexError solves the issue

@oliverdelancey
Copy link
Owner

oliverdelancey commented Nov 3, 2020

I changed IndexError to IndexDefect due to a deprecation warning. (See nim-lang/Nim#13908)

What version of Nim are you using?

@wokibe
Copy link
Author

wokibe commented Nov 3, 2020 via email

@oliverdelancey
Copy link
Owner

oliverdelancey commented Nov 3, 2020

Hey Wolfgang,

I have "found" Nim just about 2 weeks ago. Awesome! Nim is really fun, and the design philosophies are great.

Sorry for the open of this issue. I googled for IndexDefect vs IndexError but did not find anything usable.
No problem! I'll look into making clapfn more compatible with older versions of Nim. I always keep as up-to-date as possible, which has the downside of occasionally breaking my code as I add the latest features.

Is clapfn working for you now? If not, I'll move fixing the new IndexDefect problem higher up on my to-do list.

And thank you for the complement! I really appreciate it. It's nice to hear back from people using my code.

Oliver

@wokibe
Copy link
Author

wokibe commented Nov 3, 2020 via email

@oliverdelancey
Copy link
Owner

Hi Wolfgang,

I'm glad you got it working. I will probably add a declaration check for backwards compatibility.

when not declared(IndexDefect):
  # IndexDefect = IndexError

Oliver

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

2 participants