]> gitweb.factorcode.org Git - factor.git/commitdiff
units: Use ERROR: for dimensions-not-equal.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 24 Mar 2013 16:42:22 +0000 (09:42 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 24 Mar 2013 17:11:16 +0000 (10:11 -0700)
extra/units/units.factor

index 90eea34215aa287f4902d30e7e9a5b57f73134bb..6bc2242074c836cbbeb071f8204f3e9750d266cf 100644 (file)
@@ -5,10 +5,7 @@ IN: units
 
 TUPLE: dimensioned value top bot ;
 
-TUPLE: dimensions-not-equal ;
-
-: dimensions-not-equal ( -- * )
-    \ dimensions-not-equal new throw ;
+ERROR: dimensions-not-equal ;
 
 M: dimensions-not-equal summary drop "Dimensions do not match" ;