Quantcast
Channel: What is the 'open' keyword in Swift? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

What is the 'open' keyword in Swift?

$
0
0

The ObjectiveC.swift file from the standard library contains the following few lines of code around line 228:

extension NSObject : Equatable, Hashable {  /// ...  open var hashValue: Int {    return hash  }}

What does open var mean in this context, or what is the open keyword in general?


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>