Thanks a lot Jordan,
ObjectIdentifier seems pretty cool, looks like a way of representing everything
identifiable in Swift (AnyObject and Any.Type).
Easier to use and debug, would be perfect for what I am looking for !
The ObjectIdentifier documentation pretty much sums it up:
"In Swift, only
Hi,
I am beginning with Swift 4 (coming from the Java world) but I do not have yet
a Swift development environment to experiment with. Therefore my question(s)
might sound a bit silly. Unfortunately, I haven't been able to answer them by
reading the online Language Guide.
1) What makes a submo
I'm not sure if this is a Swift question, or an Xcode question.
When building a Swift-based Framework for distribution to third parties, where
do the apinotes and modulemap files go?
Thanks.
--
Rick Mann
rm...@latencyzero.com
___
swift-users mailin
> On Sep 12, 2017, at 10:20, Andrew Trick via swift-users
> wrote:
>
>>
>> On Sep 12, 2017, at 9:55 AM, somu subscribe via swift-users
>> wrote:
>>
>> Hi Quinn,
>>
>> Thanks for the reply,
>>
>> It is an iOS Swift project (uses Foundation, UIKit, CloudKit and other
>> native frameworks)
i think this is something that’s mostly important for educational purposes and
the fact that Swift is mostly opaque to memory makes it harder to teach.
> On Sep 12, 2017, at 12:19 PM, Andrew Trick via swift-users
> wrote:
>
>
>> On Sep 12, 2017, at 9:55 AM, somu subscribe via swift-users
>>
Thanks a lot Andrew and Quinn,
After your explanation, I understand the following better now:
- It makes sense to get the memory address of a reference type as it represents
identity. Just realised there is also === identity operator to check if it is
the same reference.
- The need to get the
> On Sep 12, 2017, at 9:55 AM, somu subscribe via swift-users
> wrote:
>
> Hi Quinn,
>
> Thanks for the reply,
>
> It is an iOS Swift project (uses Foundation, UIKit, CloudKit and other native
> frameworks) in which I would like to check the memory address for debugging
> (and out of enthus
Hi Quinn,
Thanks for the reply,
It is an iOS Swift project (uses Foundation, UIKit, CloudKit and other native
frameworks) in which I would like to check the memory address for debugging
(and out of enthusiasm). There is no C code I am using.
I have some asynchronous call back functions from Cl
On 12 Sep 2017, at 13:44, somu subscribe via swift-users
wrote:
> 1. Is the above shown the correct way to get reference type memory address ?
> 2. What Is it the correct way to get value type memory address ?
It’s hard to answer that without knowing how you’re intended to use these
technique
Hi,
I would like to know the correct way to get the memory address of value types
and reference types.
Given below are the attempts made.
class C {}
struct S {}
let c1 = C()
var s1 = S()
var s2 = s1
//Reference type:
print("c1 address: \(Unmanaged.passUnretained(c1).toOpaque())") //Is this
c
10 matches
Mail list logo