Re: use of = &new object versus = new object
| From: | Madeleine D. | Date: | Mon, 11 Jul 2005 20:43:10 +0000 |
| Subject: | Re: use of = &new object versus = new object | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5985@lists.php.net to get a copy of this message | ||
Andrei -
Okay. I trust you implicitly.
But I have to wonder if Nathan is right about reference changing somehow
from .5 to 1.0.1a. Somewhere in the back of my mind is the recollection
that I did this once by accident when I first started and ran into problems
right away.
I may keep my changed copies anyway, since we have to do this once we come
to PHP-Gtk2.
Madeleine D.
At 01:10 PM 7/11/05 -0700, Andrei Zmievski wrote:
>Trust me, you need to use &new in PHP-GTK 1. You may not see any
>problems right away, but they will crop up.
>
>-Andrei
>
>On Jul 11, 2005, at 11:42 AM, Madeleine D. wrote:
>
>>
>> I think Jake has asked a very good question. Since he ran into his
>> earlier
>> problem and removed the reference on the new objects, I've taken to
>> trying
>> the same thing in my code. So far, I don't see a difference - either
>> for
>> performance or for causing any kind of problems. My screens seem to
>> behave
>> the same way, with or without the = & new.
>>
>> I understand about references and how they work, but as he points out,
>> all
>> of our GtkObjects are new items, and generally don't need references at
>> that point. So why do we do it??
>>
>
>