Am Mittwoch, 22. November 2006 21:03 schrieb Leopold Toetsch:
> Am Mittwoch, 22. November 2006 18:03 schrieb Patrick R.Michaud:
> > Is this a bug (I think it is), or does the underscore in
> >
> > :multi mean something other than "any argument"?
>
> The meaning is 'any PMC' [1], and it of course can't be a bug as there are
> no specs ;)

Implementing '_' as 'any type' wouldn't be that hard. Except the mentioned 
imcc.y snippets[1], it'll need some native any type and adjustments in

  static UINTVAL
  mmd_distance(Interp *interp, PMC *pmc, PMC *arg_tuple)

near

        /*
         * different native types are very different, except a PMC
         * which matches any PMC
         */
        if ((type_sig <= 0 && type_sig != enum_type_PMC) || type_call <= 0) {


[1]
compilers/imcc/imcc.y:729 ff

leo

Reply via email to