A few simple syntactic proposals
Jason House
jason.james.house at gmail.com
Wed Apr 16 18:59:46 PDT 2008
Robert Fraser wrote:
> 3. String literals should be typed as dynamic arrays. This would mean
> that "foo" would be of type invariant(char)[] not type
> invariant(char)[3u] . Note that this would have the disadvantage of
> requiring an explicit cast if the string literal were to be needed as a
> static array, but how many times have you actually used a string literal
> to initialize a static array (or used a static array at all...?)
I'm not vetoing this, but I will say that I don't really appreciate why this
is a problem. I also wonder if there's a more generic problem about
handling of static vs. dynamic arrays.
More information about the Digitalmars-d
mailing list