Skip to content

✨[feat]: 도전 과제 4 구현#9

Merged
Roy-wonji merged 3 commits intodevelopfrom
Feature/challenge-04
Aug 25, 2025
Merged

✨[feat]: 도전 과제 4 구현#9
Roy-wonji merged 3 commits intodevelopfrom
Feature/challenge-04

Conversation

@Roy-wonji
Copy link
Collaborator

✨ 작업 내용

  • 클래스 A, B 사이에 순환참조가 발생하도록 구현
  • 또한 클래스 B 에는 closure: (() -> Void)? 프로퍼티를 만들고, 클로저 내부에서 A의 인스턴스를 참조하게 하여 클로저 기반의 순환 참조도 발생
  • 순환 참조를 해결할 수 있도록 weak, unowned 키워드를 클로저 캡처 리스트를 적절히 사용하여 순환 참조를 해결

Copy link

@minneee minneee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~

@Roy-wonji Roy-wonji merged commit ae2c316 into develop Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants