News for hackers. Stuff that matters.

atrick6

Re:Swift 5 Exclusivity Enforcement on Tuesday February 05, 2019 @06:05PM (#19091000)
Yes, it removes exclusivity checks and bounds checks.
Re:Swift 3.0 Unsafe World on Tuesday September 27, 2016 @12:49PM (#12590990)
From the doc comments:

  /// Accesses the `Pointee` instance referenced by `self`.
  ///
  /// - Precondition: Either the pointee has been initialized with an
  ///   instance of type `Pointee`, or `pointee` is being assigned to
  ///   and `Pointee` is a trivial type.
  public var pointee: Pointee
So, `a.pointee = 42` is fine since we all know that `Int` is a trivial type.