in reply to Re: Re: optimization - exists should return a reference
in thread optimization - exists should return a reference
Yes, that's exactly what I'm saying.
If exists is to return a reference, it should always return a reference. Code exists which says exists( $foo{'bar}) ? 'Exists' : 'Does not exist'. That code will break if exists returns a reference, because references always evaluate true.
If what we get from exists is a reference, we should be able to treat is like any other reference. You seem to want to be able to assign from it and dereference the copy, but deny the ability to dereferencee it directly.
Just how is that supposed to work?
After Compline,
Zaxo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: optimization - exists should return a reference
by BrowserUk (Patriarch) on Jan 15, 2003 at 19:56 UTC | |
Re: Re: Re: Re: optimization - exists should return a reference
by sauoq (Abbot) on Jan 16, 2003 at 01:42 UTC | |
Re^4: optimization - exists should return a reference
by LAI (Hermit) on Jan 15, 2003 at 20:31 UTC | |
by Aristotle (Chancellor) on Jan 15, 2003 at 23:06 UTC | |
by LAI (Hermit) on Jan 16, 2003 at 16:11 UTC |