From 333bf9ce16094b5cd55f4e8c4eead4128b16c81d Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Thu, 14 Feb 2008 20:27:34 -0600 Subject: [PATCH] Clean up math combination --- core/generic/math/math.factor | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/generic/math/math.factor b/core/generic/math/math.factor index 2cc28ac0d1..0b2b9fcca3 100755 --- a/core/generic/math/math.factor +++ b/core/generic/math/math.factor @@ -58,16 +58,15 @@ TUPLE: no-math-method left right generic ; 2drop object-method ] if ; -: math-vtable* ( picker max quot -- quot ) +: math-vtable ( picker quot -- quot ) [ - rot , \ tag , - [ >r [ bootstrap-type>class ] map r> map % ] { } make , + >r + , \ tag , + num-tags get [ bootstrap-type>class ] + r> compose map , \ dispatch , ] [ ] make ; inline -: math-vtable ( picker quot -- quot ) - num-tags get swap math-vtable* ; inline - TUPLE: math-combination ; M: math-combination make-default-method