-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 when calling cfunction on a constructor #26070
Comments
oy vey, this is a surprisingly hard one, since – for our current capabilities – we would need to detect whether the type is a singleton instance (where type-equal implies egal). I've also recently started putting down thoughts about supporting closures, which would just solve the whole issue: https://github.com/vtjnash/julep/wiki/0004:-Static-compilation-for-cfunction |
dup #1096 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If one calls
cfunction
on a constructor, Julia throws an error about closures.There is some discussion on Discourse, where it was suggested that this is a bug.
I've tested this on two different machines, and both give the same behavior. The
versioninfo
output for each is below.The text was updated successfully, but these errors were encountered: