about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-12-28 10:27:37 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-12-28 10:27:37 -0800
commitba625111dcad86a0e1cbb54eccc1af6a37ad8cec (patch)
treeabddd21b6e570eb4ec7c044aa041de032c7d48e1
parent60c225baef638e17b90146a3537ce28119497bb8 (diff)
downloadmu-ba625111dcad86a0e1cbb54eccc1af6a37ad8cec.tar.gz
2551 - add a space after variables in stash
-rw-r--r--043new.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/043new.cc b/043new.cc
index c3f48bce..e57c6a4d 100644
--- a/043new.cc
+++ b/043new.cc
@@ -390,7 +390,7 @@ recipe main [
 :(before "End print Special-cases(reagent r, data)")
 if (is_mu_string(r)) {
   assert(scalar(data));
-  return read_mu_string(data.at(0));
+  return read_mu_string(data.at(0))+' ';
 }
 
 :(scenario unicode_string)
@@ -400,6 +400,13 @@ recipe main [
 ]
 +app: foo: ♠
 
+:(scenario stash_space_after_string)
+recipe main [
+  1:address:array:character <- new [abc]
+  stash 1:address:array:character [foo]
+]
++app: abc foo
+
 //: Allocate more to routine when initializing a literal string
 :(scenario new_string_overflow)
 % Initial_memory_per_routine = 2;