a simple task for Simula based languages
a simple task for Simula based languages
- Subject: a simple task for Simula based languages
- From: Vlad Alexa <email@hidden>
- Date: Sat, 17 Nov 2007 11:15:48 +0200
//consider this code for a repetitive task 3 time here but it could
be 30 times
dostufffor("This");
dostufffor("and");
dostufffor("other");
dostufffor("That");
dostufffor("and");
dostufffor("another");
dostufffor("Those");
dostufffor("and");
dostufffor("others");
//for a number of obvious reasons one would want to rewrite the code
as below
mystuff ("This","and","other");
mystuff ("That","and","another");
mystuff ("Those","and","others");
void mystuff (char First, char Second, char Third)
{
dostufffor(First);
dostufffor(Second);
dostufffor(Third);
}
//the question is , what is the best way to do this objective c ?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden