Jeremie Pelletier wrote:
That's what I'm already doing, the STL and boost make it much easier to do. I have string_t, wstring_t and dstring_t types derived from std::basic_string to cover D strings, as well as ustring_t which is set to the platform's native unicode encoding. I derived std::exception into Exception and Error to behave like D's exceptions, used boost::lexical_cast to create to<>() templates, I'm using struct and class as they would be used in D (POD vs polymorphic object) using only single inheritance and a lot of other support code to make a future port as easy and straightforward as possible.
Awesome! Great minds think alike!