• 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: Disappearing reference in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disappearing reference in debugger


  • Subject: Re: Disappearing reference in debugger
  • From: Markian Hlynka <email@hidden>
  • Date: Thu, 4 Nov 2004 15:55:39 -0700


On Nov 4, 2004, at 15:21, Jeff Laing wrote:

Today I inadvertently pointed a function pointer:
unsigned int (*MakeIndex)(Move_T move);

at a function:

unsigned int myHHindex(Move_T& move);

[snip]

Now, while I finally figured it out, it took a while. Why isn't this a
bug?

Without showing source code, its pretty difficult to determine. I mean, for
all we know you did it like this:

myPointer = (MakeIndex)myHHindex;

which wouldn't generate warnings or errors.


I see. No, actually, I did:


MakeIndex = myHHindex;



And once I change the function pointer to:

unsigned int (*MakeIndex)(Move_T& move); //note the reference parameter

it worked just fine

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: RE: resources
  • Next by Date: WO develop build works, deploy goes BOOM!
  • Previous by thread: Disappearing reference in debugger
  • Next by thread: Weak linking framework with bundle ?
  • Index(es):
    • Date
    • Thread