From 14b0932a54916349b531e804acc34a1c3caf70cf Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Sep 2016 00:01:45 -0700 Subject: 3375 --- 038new_text.cc | 6 +++++- 058to_text.cc | 3 --- 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") -- cgit 1.4.1-2-gfad0