Re: [PHP-GENERAL] Can I use Functional Pointer? / Javascript bracelet conflict ?

[email protected] (Jan Dvorak)
Newsgroups php.general
Organization MathAn Praha, Ltd.
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.