htod - convert C .h files to D import files

Lars Ivar Igesund larsivar at igesund.net
Sat May 27 09:27:51 PDT 2006


Rémy Mouëza wrote:

> import std.stdio ;
> 
> const char [] foo  = "foo\0" ;
> typeof ( foo ) bar = "bar\0" ;
> 
> void main ()
> {
> char [] test = foo ~ bar ;
> 
> writefln ( test );
> }

No, there are no problems, but your string test has length 8 now (\0 is a
non-printable character).

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi



More information about the Digitalmars-d-announce mailing list