On Thursday 23 November 2006 08:48, Patrick R. Michaud wrote:

> Here's a more detailed use case of why the current semantics
> aren't useful.  For subroutine calls, PAST-pm tries to pass
> constants directly to subroutines (when it can) rather than
> creating temporary PMCs and passing those.  For example, a HLL
> expression such as
>
>     3 .op. 4
>
> gets turned into PIR like
>
>     $P0 = "infix:.op."(3, 4)
>
> instead of
>
>     $P0 = new .Integer
>     assign $P0, 3
>     $P1 = new .Integer
>     assign $P0, 4
>     $P2 = "infix:.op."($P0, $P1)

I read through the multi code last night (ow!) and don't see any reason not to 
make the primitive types and their related PMCs equivalent in the distance 
value function.

Of course, I severely distrust the distance value function after it finds the 
distance for Pheme's best-matched 'atom?' variant at MMD_BAD_DISTANCE and 
gets progressively worse for the others.

-- c

Reply via email to