Re: Oddness with PB
Re: Oddness with PB
- Subject: Re: Oddness with PB
- From: June Van Dyke <email@hidden>
- Date: Sat, 01 Feb 2003 20:03:10 -0500
On 2/1/03 7:35 PM, "Ben Mackin" <email@hidden> wrote:
>
Would cause PB to report an error (parse error before `int'). As soon as I
>
moved the variable declaration up to the top of the function, it compiled
>
that part fine. Rather than move all my code around, I wonder how I can fix
>
things so it compiles "as is".
This was default behavior for GCC 2. Did you inadvertently switch from GCC 3
to GCC 2?
I personally it is bad programming practice to not declare variables at the
beginning of a block, but every man to his own...
--
-- sinclair44
[self becomeWorldDictator];
- (void)becomeWorldDictator
{
[[world currentLeaders] assassinate];
[[world citizens] terrorize];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.