On Nov 11, 2012, at 11:26 AM, Fariborz Jahanian wrote:
>
> On Nov 10, 2012, at 4:13 PM, John McCall wrote:
>>
>> Whereas the extended layout for the following block should describe the
>> variable as byref, and the variable's own layout should describe its contents
>> as __unsafe_unretained:
>> __block NSString *string;
>> bar(^(NSWindow *window) { string = window.title; });
> Yes, 'string' is byref in the layout. But I don't understand what you mean by
> 'variable's own layout'.
> We are not laying out 'byref' variable's individual fields in the extended
> layout, only that they are 'byref'.
Oh I see, you are talking about the layout for the 'byref' variables for the
new field in the __block variable descriptor.
Something I haven't done yet.
- Fariborz
>
> - Fariborz
>
>>
>> John.
>
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits