V2 string
Derek Parnell
derek at psych.ward
Thu Jul 5 21:23:43 PDT 2007
On Thu, 05 Jul 2007 20:58:11 -0700, Walter Bright wrote:
> James Dennett wrote:
>> I've found many times when the difference between an empty
>> string and no string was important; they generally have
>> nothing to do with extending at all. I'd be interested to
>> know why you assert that no such cases exist.
>
> I'd like to know of such cases.
char[] Option;
Option = getOptionFromUser();
if (Option.ptr = 0)
{
Option = DefaultOption;
}
However, if the user sets the option to "" then that is what they want and
not the default one.
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d
mailing list