http://d.puremagic.com/issues/show_bug.cgi?id=4705
--- Comment #8 from bearophile_h...@eml.cc 2011-03-25 10:35:06 PDT ---
A max/min with a comparing function is present in the Haskel standard library
too, named "maximumBy":
import Data.List
import Data.Ord
longestWord words = maximumBy (compa
http://d.puremagic.com/issues/show_bug.cgi?id=5785
Summary: Lexing or Parsing issue with UFCS
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: major
http://d.puremagic.com/issues/show_bug.cgi?id=5785
--- Comment #1 from Andrej Mitrovic 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 || filenam
http://d.puremagic.com/issues/show_bug.cgi?id=5785
kenn...@gmail.com changed:
What|Removed |Added
CC||kenn...@gmail.com
--- Comment #2 fr
http://d.puremagic.com/issues/show_bug.cgi?id=5777
--- Comment #1 from Kenji Hara 2011-03-25 19:06:29 PDT ---
Related issues:
On return statement, copy construction should work correctly.
- Issue 4437 - copy construction bug with "return this;"
- Issue 4499 - calls to @disabled postblit are em
http://d.puremagic.com/issues/show_bug.cgi?id=5777
--- Comment #2 from Kenji Hara 2011-03-25 19:27:32 PDT ---
Created an attachment (id=935)
3 Patches
These patches has 3 points.
1. Allow NRVO for user-defined destructor object.
2. Eliminate destructor call of return value that non-copyable o