Re: Weird error situation
Re: Weird error situation
- Subject: Re: Weird error situation
- From: Adam <email@hidden>
- Date: Wed, 26 Sep 2007 19:53:37 -0700
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
On Sep 24, 2007, at 7:45 AM, Scott Ribe wrote:
Given the definition of collision_check above, exactly when do you
expect it to return false? Since you don't actually return anything
from collision_check() it always returns true, so tile_down() will
also.
Close, but no cigar ;-)
the address of 'bool tile_right()', will always evaluate as 'true'
This warning means that you're using the address of the function
instead of
calling it. In other words, you're doing something like:
if (tile_down)
When you meant to do something like:
if (tile_down())
The other posters are right, BTW, that these are extremely
elementary C
questions that have nothing to do with Xcode. I'd suggest you find a
beginning C newsgroup or list, and reading (or re-reading) a
beginning C
book. Sorry, I don't have more specific recommendations.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
Hey, you know what, thanks. I really didn't mean for this to get off
topic like this, but at least you took the time to write a thoughtful
response. This started with me not knowing what the error meant, but
it has strayed. Scott Ribe++.
Adam
_______________________________________________
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