[Issue 5785] Lexing or Parsing issue with UFCS

2011-08-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5785


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #8 from Walter Bright bugzi...@digitalmars.com 2011-08-12 
12:54:49 PDT ---
https://github.com/D-Programming-Language/dmd/commit/7489948e40c96545a61394765add55d4363da692

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


[Issue 5785] Lexing or Parsing issue with UFCS

2011-07-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5785


kenn...@gmail.com changed:

   What|Removed |Added

 CC||k-fo...@onu.edu


--- Comment #7 from kenn...@gmail.com 2011-07-14 00:46:04 PDT ---
*** Issue 4159 has been marked as a duplicate of this issue. ***

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


[Issue 5785] Lexing or Parsing issue with UFCS

2011-07-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5785


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||yebbl...@gmail.com


--- Comment #6 from yebblies yebbl...@gmail.com 2011-07-09 15:08:57 EST ---
https://github.com/D-Programming-Language/dmd/pull/220

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


[Issue 5785] Lexing or Parsing issue with UFCS

2011-05-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5785


kenn...@gmail.com changed:

   What|Removed |Added

 CC||dsim...@yahoo.com


--- Comment #5 from kenn...@gmail.com 2011-05-18 13:50:25 PDT ---
*** Issue 6031 has been marked as a duplicate of this issue. ***

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


[Issue 5785] Lexing or Parsing issue with UFCS

2011-04-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5785


Rainer Schuetze r.sagita...@gmx.de changed:

   What|Removed |Added

   Keywords||patch


--- Comment #4 from Rainer Schuetze r.sagita...@gmx.de 2011-04-08 00:17:27 
PDT ---
Here is a patch that allows to deal with this without creating new tokens:

diff --git a/src/parse.c b/src/parse.c
index 162fa85..199cf89 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -5380,9 +5380,10 @@ Expression *Parser::parsePostExp(Expression *e)
 nextToken();
 if (token.value == TOKidentifier)
 {   Identifier *id = token.ident;
+enum TOK save;

 nextToken();
-if (token.value == TOKnot  peekNext() != TOKis)
+if (token.value == TOKnot  (save = peekNext()) != TOKis
 save != TOKin)
 {   // identifier!(template-argument-list)
 TemplateInstance *tempinst = new TemplateInstance(loc,
id);
 Objects *tiargs;

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


[Issue 5785] Lexing or Parsing issue with UFCS

2011-03-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5785


Rainer Schuetze r.sagita...@gmx.de changed:

   What|Removed |Added

 CC||r.sagita...@gmx.de


--- Comment #3 from Rainer Schuetze r.sagita...@gmx.de 2011-03-26 01:20:53 
PDT ---
I think !is and !in should be single tokens. Right now, you can write spaces
and comments between ! and is/in.

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


[Issue 5785] Lexing or Parsing issue with UFCS

2011-03-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5785



--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-03-25 
16:04:15 PDT ---
Note that `is` _can_ be used, but `!is` cannot. Hence:

This builds fine:
if (!filename.isFile || filename.getExt in fileExtensions)

This doesn't:
if (!filename.isFile || filename.getExt !in fileExtensions)

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


[Issue 5785] Lexing or Parsing issue with UFCS

2011-03-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5785


kenn...@gmail.com changed:

   What|Removed |Added

 CC||kenn...@gmail.com


--- Comment #2 from kenn...@gmail.com 2011-03-25 16:23:18 PDT ---
Workaround:


if (!filename.isFile || (filename.getExt) !in fileExtensions)




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