• 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: Advice needed about a possible bug in NSMethodSignature or NSInvocation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice needed about a possible bug in NSMethodSignature or NSInvocation


  • Subject: Re: Advice needed about a possible bug in NSMethodSignature or NSInvocation
  • From: Cameron Hayne <email@hidden>
  • Date: Fri, 12 Mar 2004 01:29:01 -0500

On 3/10/04 1:08 PM, "Thomas Lachand-Robert" <email@hidden> wrote:

> Usually in C "typedef SomeType SomeName" has the same effect
> than "#define SomeName SomeType".

I'm afraid you are wrong on that.
Consider this example (common in pre-C++ C):
typedef char* String;
The declaration of the two variables 'foo' & 'bar' in the following
statement:
String foo, bar;
is equivalent to:
char *foo, *bar;

but if you had instead done:
#define String char*
you would obviously get something quite different from the statement:
String foo, bar;

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Advice needed about a possible bug in NSMethodSignature or NSInvocation
      • From: Thomas Lachand-Robert <email@hidden>
References: 
 >Re: Advice needed about a possible bug in NSMethodSignature or NSInvocation (From: Thomas Lachand-Robert <email@hidden>)

  • Prev by Date: Re: NSString really Unicode?
  • Next by Date: code folds
  • Previous by thread: Re: Advice needed about a possible bug in NSMethodSignature or NSInvocation
  • Next by thread: Re: Advice needed about a possible bug in NSMethodSignature or NSInvocation
  • Index(es):
    • Date
    • Thread