leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: lean4

Topic: C FFI: How to auto free pointer


Locria Cyber (Aug 05 2022 at 11:03):

I have a Lean type that maps to a pointer. I want to free to pointer when the lean type is not referenced anymore. How to do that automatically?

Sebastian Ullrich (Aug 05 2022 at 11:08):

This is what lean_external_object is for. I think you can find instructions on how to use it in past discussions in this channel.


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll