• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Clang ignoring type mismatch assigning block to object type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clang ignoring type mismatch assigning block to object type


  • Subject: Re: Clang ignoring type mismatch assigning block to object type
  • From: Keary Suska <email@hidden>
  • Date: Sun, 27 Apr 2014 16:12:57 -0600

On Apr 27, 2014, at 11:32 AM, Jens Alfke wrote:

> I just noticed that Clang (in Xcode 5.1.1) isn’t type-checking assignments where the RHS is a block type and the LHS is an Obj-C object type:
>
>    void (^aBlock)() = nil;

Does it flag it when this assignment is other than nil? Just curious...

Though I agree that there should be a warning about this, as it would almost never be correct...

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Clang ignoring type mismatch assigning block to object type
      • From: Jens Alfke <email@hidden>
References: 
 >Clang ignoring type mismatch assigning block to object type (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Clang ignoring type mismatch assigning block to object type
  • Next by Date: Re: Clang ignoring type mismatch assigning block to object type
  • Previous by thread: Re: Clang ignoring type mismatch assigning block to object type
  • Next by thread: Re: Clang ignoring type mismatch assigning block to object type
  • Index(es):
    • Date
    • Thread