I was looking at a sample of Apple code for my 2014 WWDC “Advanced User Interfaces with Collectible Views” and came across a weak ad that looked like this:
__weak typeof(&*self) weakself = self;
My question is: what does & * mean in the declaration? Why not just have:
__weak typeof(self) weakself = self;
Thank you for your help.
Why not just have:__ weak type (self) weak self = self;
Why not just have:
__ weak type (self) weak self = self;
You can. This is a normal way to do this. Some previous version of the compiler did not handle it properly, but it was fixed a long time ago.
self MyInstance *. *self, self* self. , &(*self), .
self
MyInstance *
*self
self*
&(*self)
Source: https://habr.com/ru/post/1547102/More articles:How to show formatted contact numbers? - javaAvoid Large Images with NSPasteboard - objective-chow to execute gcc4.1.2 and gcc 4.7.3 - c ++FactoryGirl создает несколько записей - rubyДобавить список значений внутри списка - listCannot add file to solution: "A file or folder with the name [name] already exists” - c #How to control hover effect in CSS3? - javascriptConvert io.BytesIO to io.StringIO to parse an HTML page - htmlWhat is the best way to multiply a large and sparse matrix with its transposition? - c ++How to press 3 keys at a time using KeyPress? - c #All Articles