Bug 8959 – IsExpression should support syntax which has no Identifier in all cases

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-03T09:14:00Z
Last change time
2013-03-08T05:10:54Z
Keywords
pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-11-03T09:14:37Z
From: http://dlang.org/expression#IsExpression IsExpression now supports following syntax. 1. is ( Type ) 2. is ( Type : TypeSpecialization ) 3. is ( Type == TypeSpecialization ) 4. is ( Type Id ) 5. is ( Type Id : TypeSpecialization ) 6. is ( Type Id == TypeSpecialization ) 7a. is ( Type Id : TypeSpecialization , TemplateParameterList ) 7b. is ( Type Id == TypeSpecialization , TemplateParameterList ) When sorted by the presence or absence of Id: 1. is ( Type ) 2. is ( Type : TypeSpecialization ) 3. is ( Type == TypeSpecialization ) X. is ( Type : TypeSpecialization , TemplateParameterList ) // ? Y. is ( Type == TypeSpecialization , TemplateParameterList ) // ? 4. is ( Type Id ) // 1 + Id 5. is ( Type Id : TypeSpecialization ) // 2 + Id 6. is ( Type Id == TypeSpecialization ) // 3 + Id 7a. is ( Type Id : TypeSpecialization , TemplateParameterList ) // X + Id 7b. is ( Type Id == TypeSpecialization , TemplateParameterList ) // Y + Id I think X and Y should be supported from the view of language symmetry.
Comment #1 by k.hara.pg — 2012-11-04T04:29:58Z
Comment #2 by github-bugzilla — 2012-11-20T18:34:35Z
Comment #3 by andrej.mitrovich — 2013-01-11T17:54:01Z
Fixed in 2.061 release.(In reply to comment #2) > Commit pushed to fix8959 at > https://github.com/D-Programming-Language/d-programming-language.org > > https://github.com/D-Programming-Language/d-programming-language.org/commit/df2e07a8e473abfd757146966a788775819637b6 > fix Issue 8959 - IsExpression should support syntax which has no Identifier in > all cases Where did this come from? The pull isn't merged yet.
Comment #4 by github-bugzilla — 2013-03-06T09:10:25Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a9f8a9d69118469f2d936406e0574584940d6ce1 fix Issue 8959 - IsExpression should support syntax which has no Identifier in all cases https://github.com/D-Programming-Language/dmd/commit/c9a411a05b6026a924c95853ecfeae3d2ecc5117 Merge pull request #1255 from 9rnsr/fix8959 Issue 8959 - IsExpression should support syntax which has no Identifier in all cases
Comment #5 by github-bugzilla — 2013-03-06T09:11:57Z
Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/69bcff44ac05d5f26fb8c350b884e8b99228805f fix Issue 8959 - IsExpression should support syntax which has no Identifier in all cases https://github.com/D-Programming-Language/d-programming-language.org/commit/05d4664cc2a5ecf4055a0ec77467a7187631d43c Merge pull request #199 from 9rnsr/fix8959 [enh] Issue 8959 - IsExpression should support syntax which has no Identifier in all cases
Comment #6 by github-bugzilla — 2013-03-08T05:10:54Z