From b86d23391e4b7882ebfca582d146e75c6cc1e454 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Jul 2017 08:55:35 +0200 Subject: Add modularized version --- libmhello/libmhello/hello.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libmhello/libmhello/hello.cxx (limited to 'libmhello/libmhello/hello.cxx') diff --git a/libmhello/libmhello/hello.cxx b/libmhello/libmhello/hello.cxx new file mode 100644 index 0000000..c94f921 --- /dev/null +++ b/libmhello/libmhello/hello.cxx @@ -0,0 +1,20 @@ +// file: libmhello/hello.cxx -*- C++ -*- + +module hello; + +#ifdef __clang__ +import std.core; +#endif + +import print; + +using namespace std; + +namespace hello +{ + void + say_formatted (const string& m) + { + print::to_stdout (m); + } +} -- cgit v1.1