Commit graph

5 commits

Author SHA1 Message Date
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00
Geod24
b3cc517966 Allow -preview=in only with extern(D|C++)
The intent of `-preview=in` is to make `in` the go-to storage class for input parameters in D.
However it is D centric, as it is an enhanced version of `scope const ref`.
As non-`extern(D)` functions usually are expected to match a specific ABI,
using `in` is hardly a good idea.

However, as C++, also have a "go to" storage class for input parameters (`const T&`),
`in` can also be applied on `extern(C++)` function in order to bind to `const T&` parameters.
This also allows to expose a closer API for a function than via `const ref`,
as `in` will allow to bind rvalues to `const T&`, as in C++.
2022-06-20 12:56:14 +00:00
Iain Buclaw
2d30d2fd5f fix Issue 22833 - [REG 2.083] error: 'string' is not a member of 'std' 2022-03-02 07:48:08 +08:00
Iain Buclaw
0adbffc724 test: runnable_cxx/cppa.d: Use C++11 std::string implementation 2021-12-11 21:29:36 +00:00
MoonlightSentinel
1056276961
Move existing runnable C++ tests into runnable_cxx
Additionaly updates the Azure script to call run.d for all non-C++
targets instead of explicitly deleting the C++ tests.
2020-03-21 15:05:31 +01:00
Renamed from test/runnable/extra-files/cppb.cpp (Browse further)