-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
#[dtor]
does not match semantics of #[ctor]
#284
Comments
Most likely |
FWIW I'd be open to a discussion of the future of the API, but I think it is difficult to get this working cross-platform. |
for *bsd and linux, |
I was banking on |
For ctor 1, I'm going to split the dtor functionality out into its own crate, where we can experiment with different design decisions. I've create a placeholder crate for |
Thanks! Somehow, I encountered an inconsistency that made me drop the whole idea (that includes using |
Registering a function with
atexit
does not really match what I would expect from this crate/attribute. I would expect that, like__attribute__((destructor))
, the function is called at module unload time, which could occur at a different time than actual program exit.The text was updated successfully, but these errors were encountered: