• 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
Re: a simple task for Simula based languages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a simple task for Simula based languages


  • Subject: Re: a simple task for Simula based languages
  • From: John Stiles <email@hidden>
  • Date: Sat, 17 Nov 2007 07:36:09 -0800

If you change "char" to "char*" in your code snippet below, this would work as written.
This seems like you just need to learn how C works. This isn't an Objective-C issue at all.



On Nov 17, 2007, at 1:15 AM, Vlad Alexa wrote:

//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:
40blizzard.com


This email sent to email@hidden

_______________________________________________

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: Vlad Alexa <email@hidden>
References: 
 >a simple task for Simula based languages (From: Vlad Alexa <email@hidden>)

  • Prev by Date: Re: Making Tiger Look Pretty in Drag
  • Next by Date: Re: Login Item for All Users
  • Previous by thread: a simple task for Simula based languages
  • Next by thread: Re: a simple task for Simula based languages
  • Index(es):
    • Date
    • Thread