일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 형식
- iPhone
- c#
- WSDL
- cagr48com
- windows7
- ObjectiveC
- 아이폰
- Objective-C
- 오브젝티브C
- 윈도구
- 볼링
- VISTA
- WebService
- 7932
- 애플
- Number
- 아이맥
- Mobile
- 맥
- mac
- screen
- 퇴사
- install
- 윈도우즈7
- 링크
- windows
- 설치
- 윈도구7
- java
Archives
- Today
- Total
목록2022/08/05 (1)
A colossal Dreamer: GR鐵塔-天生我材
[Swift] Int 의 양수구간만 사용할 때 임의 값 활용하는 비법.
Like this: public struct Demand { public static let unlimited: Self = .init(demand: UInt(Int.max) + 1) public static func max(_ value: Int) -> Self { .init(demand: UInt(value)) } private var _demand: UInt private init(demand: UInt) { _demand = demand } } Demand 값은 양수만 갖는다. Demand 는 양수외에 특이값 무제한 이라는 속성도 가질 수 있다. 이런 경우 외부 노출값은 Int 형식으로 사용하고, 내부값을 UInt 를 사용하여, Int 형식의 범위에는 포함되지 않고, UInt 로만 표현 가능한 값..
Development/랑구지(vbscript javascript java c# c++ objectiveC)
2022. 8. 5. 15:19