Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does D allow separation of interface from implementation in templates?

I haven't tried D yet, but it seems like a very interesting language that has found some neat solutions to problems in C++. I'm curious, did it also make it possible to separate interface from implementation in templates? If yes, then how?

like image 270
Paul Manta Avatar asked Jan 19 '23 04:01

Paul Manta


1 Answers

no any templates used are fully expanded at compile time

this means that the compiler needs to know the full code of the template making it impossible to keep it out of the .di files

like image 161
ratchet freak Avatar answered Jan 31 '23 00:01

ratchet freak