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

Allow construction of zero-sized gvectors #18

Open
jackfirth opened this issue Jul 20, 2020 · 0 comments · May be fixed by #34
Open

Allow construction of zero-sized gvectors #18

jackfirth opened this issue Jul 20, 2020 · 0 comments · May be fixed by #34

Comments

@jackfirth
Copy link

The #:capacity argument to make-gvector is restricted to an exact-positive-integer?, which prevents using make-gvector to create a zero-sized vector. I think this ought to be allowed, since if the capacity argument is dynamic (say, you're computing it based on indices for some subvector) returning an empty vector for the zero size case is perfectly reasonable.

@samth samth linked a pull request Feb 28, 2024 that will close this issue
@sorawee sorawee linked a pull request Mar 4, 2024 that will close this issue
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 a pull request may close this issue.

1 participant