.init property for char[] type
Justin Johansson
procode at adam-dott-com.au
Tue Sep 22 06:53:52 PDT 2009
Daniel Keep Wrote:
> > Big difference if you pass char[] variable .ptr to a C function.
> In general, if you pass a string to a C function you should send it
> through toStringz first. If you don't, you're just begging for segfaults.
Agreed .. fair enough.
Actually I'm more interested in the semantics for default initialized char[].
Does it have exactly the same semantics as an empty string (in general D or runtime library, Phobos et. al. context)?
More information about the Digitalmars-d
mailing list