string concatenation

Justin Johansson no at spam.com
Wed Nov 18 21:51:22 PST 2009


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.



More information about the Digitalmars-d mailing list