Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タイトルが示すように、lldb は の値が of であると報告しますUInt.maxがUInt、-1これは非常に非論理的です。let uint: UInt = -1それがコンパイルさえされないことを考えると、どうすればこれが可能になるのでしょうか? 負の値を指定するとイニシャライザがクラッシュするため、実行時に UInt の負の値を持つ方法がわかりません。UIntの実際の最大値を知りたいです。
UInt.max
UInt
-1
let uint: UInt = -1