Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
db69a5e81307dff199c0aae4801cdcf7c873a7a4
/
.
/
examples
/
cpp2_cppfront
/
default.cpp2
blob: 99fc51b6c356d492021fadbd181c89fb205346e0 [
file
] [
log
] [
blame
] [
raw
]
#include
<iostream>
#include
<string>
name
:
()
->
std
::
string
=
{
s
:
std
::
string
=
"world"
;
decorate
(
s
);
return
s
;
}
decorate
:
(
inout s
:
std
::
string
)
=
{
s
=
"["
+
s
+
"]"
;
}
auto
main
()
->
int
{
// name();
std
::
cout
<<
"Hello "
<<
name
()
<<
"\n"
;
}