• 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
Why? Why? Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why? Why? Why?


  • Subject: Why? Why? Why?
  • From: Luca Ciciriello <email@hidden>
  • Date: Sun, 26 Aug 2012 15:36:40 +0200

Hi All.

Statement 1): Compiler is always right.

Xcode 4.4
file .m

@interface MyClass
{
	int page;
}

end

@implementation MyClass

- (void)viewWillAppear:(BOOL)animated
{
	[super viewWillAppear:animated];

	…

	page = 0;
}

- (void) myMethod
{
	page++;
	if(page > 2)
	{
		page = 0;
	}
}

...

No problem at all building this code.

Then

Xcode 4.4.1

Same file, same code.

Xcode hanging building this file!!!

Removing page = 0 in MyMethod all builds fine.

Is "Statement 1)" correct?


Luca.




 _______________________________________________
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: Why? Why? Why?
      • From: Jens Alfke <email@hidden>
    • Re: Why? Why? Why?
      • From: Peter Teeson <email@hidden>
  • Prev by Date: Re: Codesigning for Gatekeeper on 10.8
  • Next by Date: Re: Why? Why? Why?
  • Previous by thread: Re: Build Scripts
  • Next by thread: Re: Why? Why? Why?
  • Index(es):
    • Date
    • Thread