• 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: Oddness with PB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Oddness with PB
      • From: Alex Rice <email@hidden>
References: 
 >Oddness with PB (From: Ben Mackin <email@hidden>)

  • Prev by Date: Re: NSLog format
  • Next by Date: Re: Oddness with PB
  • Previous by thread: Oddness with PB
  • Next by thread: Re: Oddness with PB
  • Index(es):
    • Date
    • Thread