mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: remove Word and UWord
These types are leftovers from the early pre-1.0 times when Int and UInt were always 64-bit on all platforms. They serve no useful purpose today. Int and UInt are defined to be word-sized and should be used instead. rdar://18693488 Swift SVN r30564
This commit is contained in:
@@ -449,7 +449,6 @@ extension ${Self} {
|
||||
extension ${Self} : SignedNumberType {}
|
||||
% end
|
||||
|
||||
%# FIXME: checked conversions of Word types
|
||||
// construction from other integer types
|
||||
@transparent
|
||||
extension ${Self} {
|
||||
@@ -649,10 +648,10 @@ public func _assumeNonNegative(x: ${Self}) -> ${Self} {
|
||||
% end
|
||||
//===--- End loop over all integer types ----------------------------------===//
|
||||
|
||||
/// A signed integer type that occupies one machine word.
|
||||
@available(*, unavailable, renamed="Int")
|
||||
public typealias Word = Int
|
||||
|
||||
/// An unsigned integer type that occupies one machine word.
|
||||
@available(*, unavailable, renamed="UInt")
|
||||
public typealias UWord = UInt
|
||||
|
||||
// ${'Local Variables'}:
|
||||
|
||||
Reference in New Issue
Block a user