dmd 1.053 and 2.037 release

Max Samukha spambox at d-coding.com
Sun Dec 6 06:34:46 PST 2009


On Sat, 5 Dec 2009 10:59:12 -0500, "Nick Sabalausky" <a at a.a> wrote:

>"Max Samukha" <spambox at d-coding.com> wrote in message 
>news:pkvkh5tvvhie0ga61lrpp5qmt53h5ju1t4 at 4ax.com...
>> On Sat, 5 Dec 2009 10:19:23 -0500, "Nick Sabalausky" <a at a.a> wrote:
>>
>>>"bearophile" <bearophileHUGS at lycos.com> wrote in message
>>>news:hfdt87$1num$1 at digitalmars.com...
>>>> There's a large number of changes!
>>>> I don't understand what "No more comma operators allowed between [ ]."
>>>> means.
>>>>
>>>
>>>I assume that means:
>>>
>>>int[1,2,3] foo; // <- formerly created an int[3], now (presumably)
>>>disallowed
>>>
>>
>> Was this feature documented anywhere?
>
>I don't think it was ever really a feature, it was just a consequence of the 
>next-to-useless expression "x,y" evaluating to "y" and "int[...] foo;" 
>taking a single value for "...". 
>

Ah, it is simply the unfortunate comma expression evaluated to 3.
Comma expressions need to go. Thanks.


More information about the Digitalmars-d-announce mailing list