[swift-users] Should Array's `append(_)` function cause `didSet`?
Jordan Rose
jordan_rose at apple.com
Fri Jul 7 10:52:24 CDT 2017
It definitely should. Can you show the code where it wasn’t being called?
Thanks!
Jordan
> On Jul 7, 2017, at 00:31, Zhao Xin via swift-users <swift-users at swift.org> wrote:
>
> Should Array's `append(_)` functions cause the array's `didSet`?
> In my own test, it did call `didSet` in Playground. But in .swift files, it didn't call.
>
> Is this a known bug or something? Which is correct?
>
> Xcode Version 9.0 beta 2 (9M137d)
>
> swift --version
> Apple Swift version 4.0 (swiftlang-900.0.45.6 clang-900.0.26)
> Target: x86_64-apple-macosx10.9
>
>
> Zhao Xin
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170707/fdd7ecff/attachment.html>
More information about the swift-users
mailing list