Re: More Swift issues, NSURLComponents
Re: More Swift issues, NSURLComponents
- Subject: Re: More Swift issues, NSURLComponents
- From: Jens Alfke <email@hidden>
- Date: Mon, 05 Oct 2015 18:12:30 -0700
> On Oct 5, 2015, at 6:03 PM, Rick Mann <email@hidden> wrote:
>
> No errors! But url3 is "let." Why is it allowed here?
NSURLComponents is a class, not a struct, so ‘url3’ is a reference, not a value, and ‘let’ just means you can’t reassign ‘url3’ to point to another object.
—Jens
_______________________________________________
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