aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/meta/metadoc.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2025-02-19 15:03:38 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2025-02-19 15:03:41 -0500
commit48fc249d6c82062b87db0dead5204d09e79edda8 (patch)
tree5944fedd91aacaa9f0503e1a55702fcc80074b80 /src/sisudoc/meta/metadoc.d
parentorg, touch, minor (diff)
document (metadata & abstraction) struct
- struct replaces tuple - some direct naming of structs returned (instead of use of auto) - minor
Diffstat (limited to 'src/sisudoc/meta/metadoc.d')
-rw-r--r--src/sisudoc/meta/metadoc.d17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/sisudoc/meta/metadoc.d b/src/sisudoc/meta/metadoc.d
index 0d58c2e..5c3694e 100644
--- a/src/sisudoc/meta/metadoc.d
+++ b/src/sisudoc/meta/metadoc.d
@@ -144,7 +144,7 @@ template spineAbstraction() {
if ((_opt_action.debug_do)
|| (_opt_action.debug_do_stages)
) {
- writeln("step4 commence → (doc_matters) [", _manifest.src.filename, "]");
+ writeln("step4 commence → (doc.matters) [", _manifest.src.filename, "]");
}
struct ST_DocumentMatters {
auto generator_program() {
@@ -294,7 +294,18 @@ template spineAbstraction() {
) {
writeln("- step4 complete for [", _manifest.src.filename, "]");
}
- auto t = tuple(doc_abstraction, doc_matters);
- return t;
+ auto theDOC() {
+ struct ST_DOC {
+ const auto abstraction() {
+ return doc_abstraction;
+ }
+ auto matters() {
+ return doc_matters;
+ }
+ }
+ return ST_DOC();
+ }
+ auto the_doc = theDOC();
+ return the_doc;
}
}