Why can't a Swift method directly access a static member?
Why can't a Swift method directly access a static member?
- Subject: Why can't a Swift method directly access a static member?
- From: Rick Mann <email@hidden>
- Date: Wed, 25 Nov 2015 00:34:46 -0800
It seems rather lame that a Swift instance method can't access a static member without prefixing it with the class. Why is this? This is something C++ and Java do just fine.
(I have a similar question for Objective-C, which can't access a class method via self).
--
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