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

Make example code in the README compile #7

Merged
merged 1 commit into from
Feb 13, 2018

Conversation

ernfrid
Copy link
Contributor

@ernfrid ernfrid commented Feb 13, 2018

Background - I was modeling some code after the examples in the README and was puzzled to find that compiling it in release mode caused it to cease functioning. I think this was due to the assert open() statements in the VCF being optimized away.

I'm sure this is due to me being an extreme novice in Nim, but I thought perhaps adjusting the example code would help other novices. Right now this is just a commit to the first example to enable it to compile (not even sure if I've used the library properly).

The VCF example is a bit more involved and I thought I'd ask whether it'd be preferable to simply discard the return values of the open statements and info field retrieval or exhibit error checking before trying to push some updates to the VCF example.

@brentp brentp merged commit 013adb0 into brentp:master Feb 13, 2018
@brentp
Copy link
Owner

brentp commented Feb 13, 2018

thanks very much.

@ernfrid ernfrid deleted the example_code branch February 13, 2018 16:18
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

Successfully merging this pull request may close these issues.

2 participants