Allocate it where?
Subject: Returning functions from other functions, and thinking about the stack, the heap, and reference types.
This episode, we look at returning functions from other functions, and as part of that discuss some basics about the stack and the heap—and why we need to care about them for returning functions.
The functions themselves are not especially interesting; they just show you the basic form you use to return functions from other functions, and how to then use them in another function. You’ll want to take a detailed look instead at the documentation for each (or just read the source!), because that’s where the meat of the discussion in this week’s code is.
Links- Rust 1.4 release announcement
- “Clarify (and improve) rules for projections and well-formedness”
- MSVC support tracking issue
- Rust 1.4 full release notes
- “What and where are the stack and the heap?”
- reddraggone9
- Chris Patti
- New Rustacean:
- Twitter: @newrustacean
- App.net: @newrustacean
- Email: [email protected]
- Chris Krycho
- Twitter: @chriskrycho
- App.net: @chriskrycho
Fler avsnitt av New Rustacean
Visa alla avsnitt av New RustaceanNew Rustacean med Chris Krycho finns tillgänglig på flera plattformar. Informationen på denna sida kommer från offentliga podd-flöden.
