www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9348] New: "tmpl!arg" syntax followed by "!is"

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

           Summary: "tmpl!arg" syntax followed by "!is"
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: avinesworth mail.ru


--- Comment #0 from Andrei Vinokurov <avinesworth mail.ru> 2013-01-18 07:54:31
PST ---
The following code gets rejected:

     property Object F(int E)() { return null; }
    unittest { assert (F!0 !is null); }

 Error: multiple ! arguments are not allowed


Thoughts: there seems to be some syntactic ambiguity between "!is" as operator and "!" as template parameter list infix. IMHO, the expected behaviour in this case would be not to take operator for template parameter. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 18 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9348


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
           Platform|x86_64                      |All
            Summary|"tmpl!arg" syntax followed  |"tmpl!arg" syntax followed
                   |by "!is"                    |by "!is" or "!in"
         OS/Version|Windows                     |All


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-01-18 08:21:02 PST ---
"!in" has same problem.

     property Object F(int E)() { return null; }
    assert (F!0 !in [new Object():1]);

https://github.com/D-Programming-Language/dmd/pull/1507

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 18 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9348



--- Comment #2 from github-bugzilla puremagic.com 2013-01-25 07:33:02 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e127a7d694cd99feca52fedf9c5f8fedc37776eb
fix Issue 9348 - "tmpl!arg" syntax followed by "!is" or "!in"

https://github.com/D-Programming-Language/dmd/commit/d1af0a7534f5b580a3b61b23163573b642ce40f9
Merge pull request #1507 from 9rnsr/fix9348

Issue 9348 - "tmpl!arg" syntax followed by "!is" or "!in"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 25 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9348


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |code dawg.eu
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 25 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9348



--- Comment #3 from github-bugzilla puremagic.com 2013-02-11 22:49:53 PST ---
Commits pushed to https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e127a7d694cd99feca52fedf9c5f8fedc37776eb
fix Issue 9348 - "tmpl!arg" syntax followed by "!is" or "!in"

https://github.com/D-Programming-Language/dmd/commit/d1af0a7534f5b580a3b61b23163573b642ce40f9
Merge pull request #1507 from 9rnsr/fix9348

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 11 2013