Re: Can I use Functional Pointer? / Javascript bracelet conflict ?
| From: | Jan Dvorak | Date: | Tue, 16 May 2000 13:04:45 +0000 |
| Subject: | Re: Can I use Functional Pointer? / Javascript bracelet conflict ? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92@lists.php.net to get a copy of this message | ||
Dirk Soede wrote:
>
> > I don't think there will be pointers,
> > the language has so far been able to avoid them
> > (which is a good think for a scripting language, IMHO).
>
> I would agree to avoiding pointers. But the problem is that PHP copies
> objects completely instead of the references to them. This is quite
> unpractical.
I agree!
So this is why I had to rewrite some of my scripts.
I always thought that "new" returns an object reference,
not the object as a value. I expected more Perl-like behaviour.
Jan