Justin Johansson wrote:
Ellery Newcomer wrote:Andrei Alexandrescu wrote:a = std.utf.toString(somewstring); //no I'm not going to check if that's the right function am I still missing something?a = string( somewstring ) is much cleaner. This an example of a constructor function. Sadly, D does not support constructor functions (that I know of).
I meant for primitive types, of course.