[swift-users] XML parsing on Linux, with Swift 3.1

Georgios Moschovitis george.moschovitis at icloud.com
Wed Sep 6 22:49:27 CDT 2017


> XMLParser’s delegate is unowned, so it’s being deallocated when you exit the current scope. Hold on to it with a strong reference:
> 
> let delegate = ParserDelegate()
> xmlParser.delegate = delegate

Wow!
Need to brush-up my understanding of Swift ‘pointers’

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170907/cee2cddc/attachment.html>


More information about the swift-users mailing list