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

Add speaker note about fn ptrs #2680

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Add speaker note about fn ptrs #2680

merged 1 commit into from
Feb 28, 2025

Conversation

randomPoison
Copy link
Collaborator

Students sometimes ask about function pointers when we talk about closures, so I've added a speaker note and a playground example demonstrating that we can store regular functions in variables as fn pointers, and that non-capturing closures can also coerce to regular fn ptrs.

@randomPoison randomPoison merged commit 9591f93 into main Feb 28, 2025
37 checks passed
@randomPoison randomPoison deleted the legare/fn-ptr-note branch February 28, 2025 21:20
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.

2 participants