On Thu, Mar 27, 2008 at 12:21 PM, Nick Rogers <[EMAIL PROTECTED]> wrote: > i'm declaring the following method: > > - (BOOL)searchNodeTarget:(const ItemType)target > location:(int &)location; > > with error: "parse error before '&' token". > > can we not use (int &) this way?
Reference parameters are a C++ feature. You can either use (int*)location, or compile as Objective-C++ by changing your header extension to .hh _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]