Avatar
omochimetaru 10/3/2017 7:43 AM
eventually we will have something like the current @_versioned attribute, where internal (or even private, as some have suggested) functions can be “public ABI”. For example, @_versioned func myInternalDetails() { // … } @inlinable public func myPublicFunction() { myInternalDetails() // I can reference this from an inlinable function, but users can’t call it directly }
7:44 AM
やっぱり現状の@_versionedをつけた関数はインライン可能関数の中から呼べるらしい
7:44 AM
publicになったわけではないから直接は呼べない