string is rarely useful as a function argument

Walter Bright newshound2 at digitalmars.com
Wed Dec 28 09:16:10 PST 2011


On 12/28/2011 5:16 AM, Peter Alexander wrote:
> Any time you want to create a string without allocating memory.
>
> char[N] buffer;
> // write into buffer
> // try to use buffer as string

Is the buffer ever going to be reused with a different string in it?


More information about the Digitalmars-d mailing list