]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix mnestic's bug and remove math.complex.prettyprint hack
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 14 Jan 2009 07:02:27 +0000 (01:02 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 14 Jan 2009 07:02:27 +0000 (01:02 -0600)
basis/bootstrap/math/math.factor
basis/math/complex/complex.factor
basis/math/complex/prettyprint/prettyprint.factor [deleted file]

index 347969af0d6698cb65230ddaec7a8aa90efea2bf..27b2f6b181f79f322c8185af743261099237a9f5 100644 (file)
@@ -2,6 +2,4 @@ USING: vocabs vocabs.loader kernel ;
 
 "math.ratios" require
 "math.floats" require
-"math.complex" require
-
-"prettyprint" vocab [ "math.complex.prettyprint" require ] when
+"math.complex" require
\ No newline at end of file
index 90713cd40fe7aa07102c40a0e39424561a553483..620a6c3bab2f5f0b53127bb7451e4d972e855ccc 100644 (file)
@@ -1,4 +1,4 @@
-! Copyright (C) 2006, 2008 Slava Pestov.
+! Copyright (C) 2006, 2009 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors kernel kernel.private math math.private
 math.libm math.functions arrays math.functions.private sequences
@@ -47,3 +47,9 @@ M: complex sqrt >polar [ fsqrt ] [ 2.0 / ] bi* polar> ;
 IN: syntax
 
 : C{ \ } [ first2 rect> ] parse-literal ; parsing
+
+USE: prettyprint.custom
+
+M: complex pprint* pprint-object ;
+M: complex pprint-delims drop \ C{ \ } ;
+M: complex >pprint-sequence >rect 2array ;
\ No newline at end of file
diff --git a/basis/math/complex/prettyprint/prettyprint.factor b/basis/math/complex/prettyprint/prettyprint.factor
deleted file mode 100644 (file)
index 09eeb80..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-! Copyright (C) 2008 Slava Pestov.
-! See http://factorcode.org/license.txt for BSD license.
-USING: math math.functions arrays prettyprint.custom kernel ;
-IN: math.complex.prettyprint
-
-M: complex pprint* pprint-object ;
-M: complex pprint-delims drop \ C{ \ } ;
-M: complex >pprint-sequence >rect 2array ;