Asking for advice - assert for ImportC
Ali Çehreli
acehreli at yahoo.com
Fri Apr 29 15:08:11 UTC 2022
On 4/29/22 02:59, Loara wrote:
> How I can prevent a function body from being removed in an interface
> file
Other than templates, the compiler needs the bodies of 'auto' functions
to determine what type they return:
auto foo() {
// ...
}
> (because that function should be evaluated at compile time)?
You simply use the .d file that includes the definitions during compilation.
I always saw .di files as the .h equivalents of C, which are not needed
in D but for distributing a library. (I don't think I will ever need them.)
Ali
More information about the Digitalmars-d
mailing list