in reply to (ar0n) Re: eq or == with references
in thread eq or == with references
Using arithmetic operators on pointers is a form of pointer arithmetic in C.
Perl, however does not have pointers. It has references. And the major difference between C pointers and Perl references is that C pointers allow pointer arithmetic and Perl references do not allow pointer or reference arithmetic. Hence the use of an arithmetic operator such as == on a Perl reference is not meaningful.
Tye points out that Perl has a feature that interprets the == for references in a meaningful way. Larry and company ought to remove this feature. References are not numbers. The Perl compiler ought to prohibit numeric operations on references.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (ar0n) Re: eq or == with references
by japhy (Canon) on Jul 08, 2001 at 19:38 UTC | |
|
Re: Re: eq or == with references
by Dr. Mu (Hermit) on Jul 08, 2001 at 21:58 UTC | |
by tye (Sage) on Jul 09, 2001 at 10:22 UTC | |
by sierrathedog04 (Hermit) on Jul 09, 2001 at 15:30 UTC | |
by tye (Sage) on Jul 09, 2001 at 19:51 UTC | |
by sierrathedog04 (Hermit) on Jul 09, 2001 at 22:30 UTC |