November 18, 2006
Oops, you're right, it was misbehaving. I'll get it fixed.
November 18, 2006
Walter Bright wrote:
> Much improved tuple support.
> 
> New 'scope' attribute for RAII objects. 'auto' still works the same, but will not for much longer. Use 'auto' for type inference.
> 
> http://www.digitalmars.com/d/changelog.html
> 
> http://ftp.digitalmars.com/dmd.174.zip

Nice release. One minor nitpick:

In http://www.digitalmars.com/d/template.html:
"A Tuple is not a type, an expression, or a symbol. It is a sequence of any mix of types, expressions or symbols."

Can we change these terms, so as to use the term "value" instead of "expression"? "expression" gives the idea of the information being the expression tree, which is not the case, it's just the value. Note as other parts of the doc use the term "value":

"Template parameters can be types, values, symbols,"
(and likewise should Tuples be described)

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
November 19, 2006
Walter Bright wrote:
> Stewart Gordon wrote:
<snip>
>> 3. You've added
>>
>>     ;
>>
>> as a Statement form.  You still haven't told us what the language gains by having it.  OK, so having it in NoScopeStatement simplifies specifying PragmaStatement and LabeledStatement, which are the only things that use it, but in Statement it appears to serve no purpose.
> 
> It can also appear in case statements and default statements.
<snip>

Shouldn't these just be special cases of LabeledStatement?

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on the 'group where everyone may benefit.
November 19, 2006
Stewart Gordon wrote:
> Walter Bright wrote:
>> Stewart Gordon wrote:
> <snip>
>>> 3. You've added
>>>
>>>     ;
>>>
>>> as a Statement form.  You still haven't told us what the language gains by having it.  OK, so having it in NoScopeStatement simplifies specifying PragmaStatement and LabeledStatement, which are the only things that use it, but in Statement it appears to serve no purpose.
>>
>> It can also appear in case statements and default statements.
> <snip>
> 
> Shouldn't these just be special cases of LabeledStatement?

Two possible solutions:

    LabeledStatement:
        Label ':' NoScopeStatement

    Label:
        Identifier
        'case' ExpressionList
        'default'

(replacing CaseStatement and DefaultStatement)
or

    LabeledStatement:
        Identifier ':' NoScopeStatement

    CaseStatement:
        'case' ExpressionList ':' NoScopeStatement

    DefaultStatement:
        'default' ':' NoScopeStatement

_Please_ make up your mind whether it's LabeledStatement or LabelledStatement!

BTW the links to CaseStatement and DefaultStatement on statement.html are broken.

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on the 'group where everyone may benefit.
1 2 3 4 5 6 7
Next ›   Last »