Re: Disappearing reference in debugger
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