From d582b4a66f5fc746b4d1e2935c5400df072df055 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 18 Feb 2017 12:16:33 -0500 Subject: 0.13.2 ref scope (return) --- org/ao_debugs.org | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'org/ao_debugs.org') diff --git a/org/ao_debugs.org b/org/ao_debugs.org index 7a63a3a..16efa26 100644 --- a/org/ao_debugs.org +++ b/org/ao_debugs.org @@ -23,8 +23,8 @@ template SiSUdebugs() { <> auto SiSUdebugs(S,T)( - auto ref const S contents, - auto ref T doc_matters, + auto return ref const S contents, + auto return ref T doc_matters, ) { mixin SiSUrgxInit; mixin InternalMarkup; @@ -133,8 +133,8 @@ debug(dumpdoc) { #+BEGIN_SRC d debug(checkdoc) { void out_segnames(S,T)( - auto ref const S contents, - auto ref T doc_matters, + auto return ref const S contents, + auto return ref T doc_matters, ) { foreach (key; doc_matters.keys_seq_seg) { if (contents[key].length > 1) { @@ -156,7 +156,7 @@ debug(checkdoc) { #+BEGIN_SRC d debug(checkdoc) { void out_toc(S)( - auto ref const S contents, + auto return ref const S contents, string key, ) { if (contents[key].length > 1) { @@ -180,7 +180,7 @@ debug(checkdoc) { #+BEGIN_SRC d debug(checkdoc) { void out_endnotes(S)( - auto ref const S contents, + auto return ref const S contents, string key, ) { if (contents[key].length > 1) { @@ -202,7 +202,7 @@ debug(checkdoc) { #+BEGIN_SRC d debug(checkdoc) { void out_bookindex(S)( - auto ref const S contents, + auto return ref const S contents, string key, ) { if (contents[key].length > 1) { -- cgit v1.2.3