[Issue 12185] AA get() is getting in the way of diagnostics

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185



--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-17 
00:33:07 PST ---
Maybe I should rename this to spellchecker recommends symbols which look
nothing like each other. not = get is an awful recommendation here.

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


[Issue 8580] VariantN.peek works wrongly for types with size bigger than maxDataSize template argument

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8580



--- Comment #2 from github-bugzi...@puremagic.com 2014-02-17 01:06:10 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/0c82698b6f50df89e946be797e2754153f1a0e29
Fix issue 8580 - Peek returns an invalid pointer for structs larger than
Variant.size.

Style: Add space between if and condition.

https://github.com/D-Programming-Language/phobos/commit/91c85101e8a8273fc6abe425b8eaac1d4808ece4
Merge pull request #1934 from Kapps/fix8580

Fix issue 8580 - Peek returns an invalid pointer for structs larger than
Variant.size.

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


[Issue 8580] VariantN.peek works wrongly for types with size bigger than maxDataSize template argument

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8580


Kapps opantm2+db...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 10046] Wrong insertion of Tuple in associative array

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10046


jens.k.muel...@gmx.de changed:

   What|Removed |Added

 CC||jens.k.muel...@gmx.de


--- Comment #2 from jens.k.muel...@gmx.de 2014-02-17 01:29:09 PST ---
To rephrase more drastically: std.typecons.Tuple is incompatible with
associative arrays because it does not implement toHash and opCmp.

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


[Issue 12177] inout(Cycle!(string[2])) implicit cast problem

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12177


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

   Keywords||pull
 CC||andrej.mitrov...@gmail.com


--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-17 
02:11:50 PST ---
https://github.com/D-Programming-Language/phobos/pull/1950

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


[Issue 12185] AA get() is getting in the way of diagnostics

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185



--- Comment #3 from yebblies yebbl...@gmail.com 2014-02-18 00:21:47 EST ---
(In reply to comment #2)
 Maybe I should rename this to spellchecker recommends symbols which look
 nothing like each other. not = get is an awful recommendation here.

But they only differ by two characters!!!

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


[Issue 12185] AA get() is getting in the way of diagnostics

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185



--- Comment #4 from yebblies yebbl...@gmail.com 2014-02-18 00:44:17 EST ---
-size_t maxdist = seedlen  3 ? seedlen - 1 : 2;
+size_t maxdist = seedlen  3 ? seedlen - 1 : seedlen == 3 ? 1 : 2;

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


[Issue 12185] AA get() is getting in the way of diagnostics

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185



--- Comment #5 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-17 
05:58:51 PST ---
(In reply to comment #4)
 -size_t maxdist = seedlen  3 ? seedlen - 1 : 2;
 +size_t maxdist = seedlen  3 ? seedlen - 1 : seedlen == 3 ? 1 : 2;

Don't we have a natural language processing / AI expert among us? Cough cough
Andrei. :)

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


[Issue 12185] AA get() is getting in the way of diagnostics

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185



--- Comment #7 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-17 
06:03:51 PST ---
(In reply to comment #6)
 (In reply to comment #5)
  
  Don't we have a natural language processing / AI expert among us? Cough 
  cough
  Andrei. :)
 
 undefined identifier 'not', but all your facebook friends liked this page
 about cats! link

LOL. So you planning on making this pull or too busy now?

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


[Issue 12185] AA get() is getting in the way of diagnostics

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185



--- Comment #6 from yebblies yebbl...@gmail.com 2014-02-18 01:01:27 EST ---
(In reply to comment #5)
 
 Don't we have a natural language processing / AI expert among us? Cough cough
 Andrei. :)

undefined identifier 'not', but all your facebook friends liked this page
about cats! link

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


[Issue 12185] AA get() is getting in the way of diagnostics

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185



--- Comment #8 from yebblies yebbl...@gmail.com 2014-02-18 01:05:32 EST ---
(In reply to comment #7)
 (In reply to comment #6)
  (In reply to comment #5)
   
   Don't we have a natural language processing / AI expert among us? Cough 
   cough
   Andrei. :)
  
  undefined identifier 'not', but all your facebook friends liked this page
  about cats! link
 
 LOL. So you planning on making this pull or too busy now?

Haha I'll go do it.

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


[Issue 12185] Spellchecker matches symbol that are more than 50% different

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

   Keywords||pull
  Component|druntime|DMD
Summary|AA get() is getting in the  |Spellchecker matches symbol
   |way of diagnostics  |that are more than 50%
   ||different


--- Comment #9 from yebblies yebbl...@gmail.com 2014-02-18 01:12:17 EST ---
https://github.com/D-Programming-Language/dmd/pull/3276

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


[Issue 10472] lastIndexOf(string, string) does not find single character string at beginning of string

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10472


Robert Schadek rburn...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #4 from Robert Schadek rburn...@gmail.com 2014-02-17 07:34:00 PST 
---
pull 1374 fixed it. git a66e5f8

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


[Issue 11070] Allow declaration statement in a switch expression

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11070


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

   Keywords||preapproved


--- Comment #7 from Andrej Mitrovic andrej.mitrov...@gmail.com 2014-02-17 
08:40:59 PST ---
http://forum.dlang.org/post/ldtdhm$o4q$1...@digitalmars.com : 

-
That bugzilla is a minor improvement that has precedent in the if 
statement, so I'd accept switch (auto var = expr) if implemented.
-

Tagging as preapproved.

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


[Issue 12188] New: std.algorithm.nextPermutation requires random access

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12188

   Summary: std.algorithm.nextPermutation requires random access
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: peter.alexander...@gmail.com


--- Comment #0 from Peter Alexander peter.alexander...@gmail.com 2014-02-17 
12:20:14 PST ---
The constraints says it requires bidirectional, but it actually requires random
access due to this line:

reverse(takeExactly(retro(range), n));

'reverse' requires a bidirectional range, but 'takeExactly' on a bidirectional
range returns a forward range. You need to provide a random access range to
'takeExactly' to get bidirectional, so this becomes a requirement of
'nextPermutation'.

nextPermutation must be modified to support bidirectional ranges. Changing the
constraint to random access is not an acceptable fix.

Here's a simple test case where a bidirectional range fails:

-
import std.algorithm, std.array;

struct MyRange
{
int[] a = [1, 2, 3];
@property
{
auto ref front() { return a.front; }
auto ref back() { return a.back; }
auto empty() { return a.empty; }
auto save() { return MyRange(a); }
}
void popFront() { a.popFront(); }
void popBack() { a.popBack(); }
}

void main()
{
MyRange r;
nextPermutation(r);
} 
-

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


[Issue 12185] Spellchecker matches symbols that are more than 50% different

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185



--- Comment #10 from github-bugzi...@puremagic.com 2014-02-17 12:30:26 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/032a6292e9c9fa354540e5afab079574d27b7f71
Fix Issue 12185 - Spellchecker matches symbols that are more than 50% different

https://github.com/D-Programming-Language/dmd/commit/a98247dc37c27b1fb39b60b7d3be434975ee3984
Merge pull request #3276 from yebblies/issue12185

Issue 12185 - Spellchecker matches symbols that are more than 50% different

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


[Issue 11630] shared library segv

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11630



--- Comment #7 from Martin Nowak c...@dawg.eu 2014-02-17 13:35:31 PST ---
*** This issue has been marked as a duplicate of issue 11981 ***

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


[Issue 11981] unittest 'host' deadlock

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11981



--- Comment #21 from Martin Nowak c...@dawg.eu 2014-02-17 13:35:31 PST ---
*** Issue 11630 has been marked as a duplicate of this issue. ***

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


[Issue 12185] Spellchecker matches symbols that are more than 50% different

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12185


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 6192] std.algorithm.sort performance

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6192


Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

 CC||and...@erdani.com


--- Comment #5 from Andrei Alexandrescu and...@erdani.com 2014-02-17 15:01:46 
PST ---
Just pasting this for future reference: dual-pivot quicksort

http://iaroslavski.narod.ru/quicksort/DualPivotQuicksort.pdf

Seems to be used in Java 8's sort for primitive types according to
http://vkostyukov.ru/posts/dual-pivot-binary-search/

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


[Issue 12137] [REG DMD2.065-b3] Huge decline in performance

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12137


Martin Nowak c...@dawg.eu changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #13 from Martin Nowak c...@dawg.eu 2014-02-17 15:01:04 PST ---
Fixed with https://github.com/D-Programming-Language/installer/pull/66.

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


[Issue 12189] New: out parameters should be allowed to modify immutable values in ctors

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12189

   Summary: out parameters should be allowed to modify immutable
values in ctors
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: thecybersha...@gmail.com


--- Comment #0 from Vladimir Panteleev thecybersha...@gmail.com 2014-02-18 
03:56:13 EET ---
void initialize(out string[] v) { v = [Hi!]; }

immutable string[] s;

shared static this()
{
s = [Hi!];   // OK
initialize(s); // NG
}

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


[Issue 11478] shared library on osx: worked in 2.062, fails in 2.063.2, still fails in 2.064

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11478


Timothee Cour timothee.co...@gmail.com changed:

   What|Removed |Added

 CC||timothee.co...@gmail.com


--- Comment #5 from Timothee Cour timothee.co...@gmail.com 2014-02-17 
18:57:02 PST ---
(In reply to comment #4)
 Commits pushed to 2.065 at https://github.com/D-Programming-Language/druntime
 
 https://github.com/D-Programming-Language/druntime/commit/433863d4ce4856a47412a9c85bf7a06b8fedb737
 fix Issue 11478 - shared library on osx
 
 https://github.com/D-Programming-Language/druntime/commit/8171553ef8e2a2ec4ee4089767110b3d4151fd74
 Merge pull request #679 from dawgfoto/fix11478

This still fails. it only works when adding import core.runtime inside 'foo.d'
(but then still prints: 
Shared libraries are not yet supported on OSX

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


[Issue 12177] inout(Cycle!(string[2])) implicit cast problem

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12177



--- Comment #4 from github-bugzi...@puremagic.com 2014-02-17 22:59:42 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/b770bddcaf4eed175461a0d0b982c76a3ca20f1e
Merge pull request #1950 from AndrejMitrovic/Fixup1835

Issue 12177 (regression) -  inout(Cycle!(string[2])) implicit cast problem

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


[Issue 6207] Mixin template evaluated to string can convert to string mixin expression implicitly

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6207


Daniel Kozak kozz...@gmail.com changed:

   What|Removed |Added

 CC||kozz...@gmail.com


--- Comment #4 from Daniel Kozak kozz...@gmail.com 2014-02-17 23:36:59 PST ---
What if we add some special syntax for mixin template instantiation.
I mean something like this:

int y = expand#$x+2; // instead of mixin(expand!$x+2)

What do you think?

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


[Issue 12177] inout(Cycle!(string[2])) implicit cast problem

2014-02-17 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12177


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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