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

Remove AutoPointer.new with block from documentation #1097

Merged
merged 1 commit into from Apr 23, 2024

Conversation

larskanis
Copy link
Member

It was never implemented since it doesn't work.

Fixes #1071

It was never implemented since it doesn't work.

Fixes ffi#1071
@eregon
Copy link
Collaborator

eregon commented Apr 22, 2024

It could work like AutoPointer.new(ptr, &SomeClass.method(:release)), but the & just seems extra so agreed.

@larskanis larskanis merged commit 769a4bd into ffi:master Apr 23, 2024
82 checks passed
@larskanis larskanis deleted the AutoPointer-without-block branch April 23, 2024 15:27
@ParadoxV5
Copy link
Contributor

AutoPointer.new(ptr, &SomeClass.method(:release))

When https://bugs.ruby-lang.org/issues/12125 passes, this could look like AutoPointer.new(ptr, &SomeClass.:release)

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.

Contrary to documentation, AutoPointer#initialize ignores block
3 participants