게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
swift 스위프트 문법 Type Alias access control
게시물ID : programmer_22120짧은주소 복사하기
작성자 : virtu
추천 : 0
조회수 : 656회
댓글수 : 2개
등록시간 : 2018/02/19 07:16:23
옵션
  • 창작글
  • 본인삭제금지
한글로 전환된 documentation에도 없고 영문을 봐도 명확하지 않아서 질문드립니다.
영문 documentation 맨 하단 부분
https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/AccessControl.html#//apple_ref/doc/uid/TP40014097-CH41-ID3

Type Aliases

Any type aliases you define are treated as distinct types for the purposes of access control. A type alias can have an access level less than or equal to the access level of the type it aliases. For example, a private type alias can alias a private, file-private, internal, public, or open type, but a public type alias can’t alias an internal, file-private, or private type.



"A type alias can have an access level less than or equal to the access level of the type it aliases."
이부분이 잘 이해되질 않습니다. 

본래의 type을  alias하는 경우는 좀더 제한된 범위의(restricted) 것이나 본래 type과 같은 access level(접근 범위)만 사용가능하다 라고 저는 이해하는데 맞는지요? 

전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호