[swift-users] Setting up properties
Erica Sadun
erica at ericasadun.com
Mon Dec 21 20:54:13 CST 2015
Thanks. Passed that along back.
-- E
> On Dec 21, 2015, at 7:47 PM, Joe Groff <jgroff at apple.com> wrote:
>
> Yeah, instance methods can't be called until `self` is fully initialized, since they may themselves touch the uninitialized instance. In addition to making the function global, you could also make it a static method to preserve namespacing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151221/0f49a4ff/attachment.html>
More information about the swift-users
mailing list