Returning a NULL string, Crashes compiler?
#5

i'm not sure you can do that.
however you can define a string, and format it, then you return the symbolic name of that string. that way you can correctly return a string, not directly.
Code:
//for example
new string[4];
format( string, 4, "null" );
return string;

// where ...
return "null";
// shouldn't work
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)