www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4230] New: version(unittest)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4230

           Summary: version(unittest)
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer utulsa.edu> 2010-05-24
14:38:08 PDT ---
is not mentioned in the spec but probably should be

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 24 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4230


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc


--- Comment #1 from bearophile_hugs eml.cc 2010-05-24 15:03:15 PDT ---
unittest is written in the "Predefined Versions" list:
http://www.digitalmars.com/d/2.0/version.html

So this bug report can be closed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 24 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4230



--- Comment #2 from Ellery Newcomer <ellery-newcomer utulsa.edu> 2010-05-24
15:06:38 PDT ---
(In reply to comment #1)
 unittest is written in the "Predefined Versions" list:
 http://www.digitalmars.com/d/2.0/version.html
 
 So this bug report can be closed.
Or it could be put in the grammar and then the bug report can be closed -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 24 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4230


Leandro Lucarella <llucax gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax gmail.com


--- Comment #3 from Leandro Lucarella <llucax gmail.com> 2010-05-30 17:19:58
PDT ---
BTW, unittest is mentioned in the documentation for D1 but it doesn't work:

$ cat u.d
version (unittest) {}
$ dmd -c u.d 
u.d(1): identifier or integer expected, not unittest

I don't know if the documentation for D1 is wrong or the compiler is buggy.

http://www.digitalmars.com/d/1.0/unittest.html

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 30 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4230



--- Comment #4 from Leandro Lucarella <llucax gmail.com> 2010-05-30 17:24:15
PDT ---
And Ellery Newcomer is right, for both D1 and D2 the specs says:

VersionCondition:
    version ( Integer )
    version ( Identifier )

But "unittest" is not either an Integer or an Identifier (is a Keyword).

http://www.digitalmars.com/d/1.0/version.html
http://www.digitalmars.com/d/1.0/lex.html#keyword

http://www.digitalmars.com/d/2.0/version.html
http://www.digitalmars.com/d/2.0/lex.html#keyword

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 30 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4230


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


--- Comment #5 from Walter Bright <bugzilla digitalmars.com> 2010-06-07
14:42:30 PDT ---
This is for D2 only.
changeset 1580

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 07 2010