Re: More Swift issues, NSURLComponents
Re: More Swift issues, NSURLComponents
- Subject: Re: More Swift issues, NSURLComponents
- From: Rick Mann <email@hidden>
- Date: Tue, 06 Oct 2015 13:04:47 -0700
> On Oct 6, 2015, at 11:31 , Greg Parker <email@hidden> wrote:
>
>
>> On Oct 5, 2015, at 7:57 PM, Rick Mann <email@hidden> wrote:
>>
>> Especially when a struct can be an AnyObject.
>
> `AnyObject` is an instance of any class type. It is never a struct. `Any` encompasses both classes and structs.
Thanks for the reminder. So, I wonder why it's behaving as it is in this case, since copy() returns an AnyObject.
--
Rick Mann
email@hidden
_______________________________________________
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