.init property for char[] type
Justin Johansson
procode at adam-dott-com.au
Tue Sep 22 06:38:59 PDT 2009
Justin Johansson Wrote:
Scratch that last garbled reply .. finger trouble.
Was going to say that ...
> > There's no real difference between an empty string and a null
> > reference. Both have 0 length.
Big difference if you pass char[] variable .ptr to a C function.
And thanks Jeremie, got specialized method working with
static if ( typeid(T) is typeid(char[])) {
// ..
}
else {
// ..
}
Cheers
Justin Johansson
More information about the Digitalmars-d
mailing list