While I'm not sure if the GCC objective-C compiler accepts C++ references (I've 
never tried), one quick & easy thing to double check is that your source file 
is a ".mm" file as opposed to a ".m" file, so that the C++ compiler will be 
used as opposed to the C compiler.
 
-Stefan> From: [EMAIL PROTECTED]> To: cocoa-dev@lists.apple.com> Date: Wed, 10 
Dec 2008 21:13:54 +0530> Subject: how to pass arguments by reference> > 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/stefan_sinclair%40hotmail.com> 
> This email sent to [EMAIL PROTECTED]
_________________________________________________________________
Suspicious message? There’s an alert for that. 
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008_______________________________________________

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