C, and by extension Objective-C, do not have references in the C++ sense. You'll have to pass a pointer to the thing that you want your method to be able to modify.

Sent from my iPhone

On Dec 10, 2008, at 7:43, Nick Rogers <[EMAIL PROTECTED]> wrote:

Hi,
I have the following in my .m file:


- (UInt32)traverseTreeStraightReturnedDirection:(int&)treeDirection
             returnedTreeDepth:(int&)treeDepth
               returnedKey:(HPlusCatalogKey&)catKey
                lookForKey:(HPlusCatalogKey)lastKey
{
// code here
}

But the error when compiling is "parse error before & token".
Is passing by reference not allowed or is there any other syntax that I should follow?

Thanks,
Nick

_______________________________________________

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/clarkcox3%40gmail.com

This email sent to [EMAIL PROTECTED]
_______________________________________________

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]

Reply via email to