[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: class method forward invocations
From: |
Willem Rein Oudshoorn |
Subject: |
Re: class method forward invocations |
Date: |
03 Jan 2002 22:26:10 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
I think this patch is correct. This was my first contact
with the ObjC runtime and I remember that I found the code
counter intuitive. But I probably got confused by
the the conversion from
receiver -> metaclass.
and got distracted by other problems.
Wim Oudshoorn.
Adam Fedor <fedor@doc.com> writes:
> I'm wondering if this fix will create some new problem:
>
> diff -c -r1.15 GSFFCallInvocation.m
> *** GSFFCallInvocation.m 17 Dec 2001 14:31:42 -0000 1.15
> --- GSFFCallInvocation.m 2 Jan 2002 18:07:28 -0000
> ***************
> *** 215,221 ****
> return class_get_instance_method (object_get_class
> (receiver), sel);
> }
> ! else if (object_is_meta_class (receiver))
> {
> return class_get_class_method (object_get_meta_class
> (receiver), sel);
> --- 215,221 ----
> return class_get_instance_method (object_get_class
> (receiver), sel);
> }
> ! else if (object_is_class (receiver))
> {
> return class_get_class_method (object_get_meta_class
> (receiver), sel);
>
>
> -----------------------------------------------------------------------------------