]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/math/rectangles/rectangles.factor
factor: more top level forms.
[factor.git] / basis / math / rectangles / rectangles.factor
index 8714bdfb1a3864e6e2816ce7a73e8bed16fa387d..56992160f83d33433bd84d155069f6716952c04b 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2008, 2009 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel arrays sequences math math.vectors accessors
-parser ;
+parser vocabs.loader ;
 IN: math.rectangles
 
 TUPLE: rect { loc initial: { 0 0 } } { dim initial: { 0 0 } } ;
@@ -62,6 +62,4 @@ M: rect contains-point?
     [ [ dim>> ] dip dim<< ]
     2bi ; inline
 
-USE: vocabs.loader
-
-{ "math.rectangles" "prettyprint" } "math.rectangles.prettyprint" require-when
+USE-WHEN-LOADED: math.rectangles.prettyprint { "math.rectangles" "prettyprint" }