Re: Referring to self in property initializer
Re: Referring to self in property initializer
- Subject: Re: Referring to self in property initializer
- From: Quincey Morris <email@hidden>
- Date: Fri, 14 Aug 2015 23:32:04 +0000
On Aug 14, 2015, at 15:44 , Rick Mann <email@hidden> wrote:
>
> What is the type of "self" in the initializer closure,
It’s the class object itself, not an instance.
> and is there a way to refer to the enclosing class instance?
No, there’s no instance here. “Enclosing” doesn’t really make any sense.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden