[swift-dev] What exactly does it mean for a Swift pointer to be initialized?
Dave Abrahams
dabrahams at apple.com
Sat Aug 6 00:26:27 CDT 2016
on Fri Aug 05 2016, Jens Persson <swift-dev-AT-swift.org> wrote:
> I'm trying to understand the new Swift 3 (4?) pointer API and Swift's
> memory model.
>
> More specifically, I'd like to know more about what exactly it means for a
> pointer to be initialized or not.
Sorry to pick nits, but... every pointer that exists is already
initialized. What you're asking about, I think, is whether the *memory
referenced by the pointer* is initialized.
--
-Dave
More information about the swift-dev
mailing list