> > On Fri, 28 Nov 2003, Leopold Toetsch wrote:
> >
> > > Op vtable       Meaning
> > > -  is_same      PMCs are ident
> > > -  is_equal     PMCs are equivalent, holding the same value
> > > Y  cmp          cmp PMCs
> > > -  cmp_num      cmp PMCs numerically
> > > -  cmp_string   cmp PMCs as strings
> > >
> > > Proposals for opcode names welcome.
> >
> > [snip]

Well, a page could be stolen from the Lisp book by defining eq/eql/equal
opcodes (though in ths case, differing from the Lisp counterparts in the
meaning of the tests) where

  - eq is true if both arguments have the same value (that is, both are
    numerically equal or both are equivalent strings)
  - eql is true if both arguments are the same, identical object
  - equal does a comparison to test if the two objects are structurally
    similar (ie. in the case of a PerlArray, an element-by-element
    comparrison would be performed to determine the similarity of the
    structure.)

Cory

Reply via email to