Re: How to interrupt a function
Re: How to interrupt a function
- Subject: Re: How to interrupt a function
- From: Colin Barrett <email@hidden>
- Date: Wed, 30 Nov 2005 09:36:50 -0500
You can technically return; in a void function.
But I would re-examine your flow if you have to do that.
-Colin
On Nov 30, 2005, at 9:33 AM, Andrea Salomoni wrote:
Hi to all,
I need a simple way to interrupt a function returning void.
-(void)method:(NSString*)aString
{
if (condition)
{
}
else
{
something like exit....
}
}
Anyone can tell me how to do?
Thank you all
Andrea
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden