• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
a simple task for Simula based languages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: a simple task for Simula based languages
      • From: John Stiles <email@hidden>
  • Prev by Date: NSPreferredBackingLocation
  • Next by Date: Login Item for All Users
  • Previous by thread: NSPreferredBackingLocation
  • Next by thread: Re: a simple task for Simula based languages
  • Index(es):
    • Date
    • Thread