about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-17 00:01:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-17 00:01:45 -0700
commit14b0932a54916349b531e804acc34a1c3caf70cf (patch)
tree74dc0e157cdfc30b890a4c234efc12a59a4f3e8c
parent78c5020531a09a242f1d21b94ab128001c04bcdf (diff)
downloadmu-14b0932a54916349b531e804acc34a1c3caf70cf.tar.gz
3375
-rw-r--r--038new_text.cc6
-rw-r--r--058to_text.cc3
2 files changed, 5 insertions, 4 deletions
diff --git a/038new_text.cc b/038new_text.cc
index 043e0498..9ecc992c 100644
--- a/038new_text.cc
+++ b/038new_text.cc
@@ -1,4 +1,8 @@
-//: Extend 'new' to handle a unicode string literal argument.
+//: Extend 'new' to handle a unicode string literal argument or 'text'.
+
+//: A Mu text is an address to an array of characters.
+:(before "End Mu Types Initialization")
+put(Type_abbreviations, "text", new_type_tree("address:array:character"));
 
 :(scenario new_string)
 def main [
diff --git a/058to_text.cc b/058to_text.cc
index 924846df..becc3842 100644
--- a/058to_text.cc
+++ b/058to_text.cc
@@ -2,9 +2,6 @@
 //: Later layers will allow us to override this to do something smarter for
 //: specific types.
 
-:(before "End Mu Types Initialization")
-put(Type_abbreviations, "text", new_type_tree("address:array:character"));
-
 :(before "End Primitive Recipe Declarations")
 TO_TEXT,
 :(before "End Primitive Recipe Numbers")