[Issue 8751] New: Problem with pure inference of inner delegate

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8751 Summary: Problem with pure inference of inner delegate Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity:

[Issue 8752] New: Unsafe use of T.init should be allowed in @system function

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8752 Summary: Unsafe use of T.init should be allowed in @system function Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

[Issue 8751] Problem with pure inference of inner delegate

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8751 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-10-04 05:27:35 PDT --- Current 'scope' storage class for value parameter is no meaning, and 'in' storage class is identical with const. Then, simplified test case is: alias bool

[Issue 8753] New: Too aggressive expansion for variables which have void initializer

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8753 Summary: Too aggressive expansion for variables which have void initializer Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords:

[Issue 8753] Too aggressive expansion for variables which have void initializer

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8753 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-10-04 06:44:44 PDT --- Say more accurately, my argue is such code should be semantically allowed by D front end. So, even if backend code generation might warn the using of unset variable,

[Issue 8747] isAssignable!(int, const(int)) is false

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8747 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Depends on||8753 --- Comment #2

[Issue 8753] Too aggressive expansion for variables which have void initializer

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8753 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #2

[Issue 8751] Problem with pure inference of inner delegate

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8751 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|

[Issue 8751] Problem with pure inference of inner delegate

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8751 --- Comment #4 from Kenji Hara k.hara...@gmail.com 2012-10-04 07:23:06 PDT --- https://github.com/D-Programming-Language/dmd/pull/1161(In reply to comment #2) Wait, is that why I've filed Issue 8749? So the whole 'in' equals 'const scope'

[Issue 8747] isAssignable!(int, const(int)) is false

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8747 --- Comment #3 from github-bugzi...@puremagic.com 2012-10-04 07:11:58 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8754] New: Function commonPrefix returns invalid string when passing two cyrillic utf-8 strings

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8754 Summary: Function commonPrefix returns invalid string when passing two cyrillic utf-8 strings Product: D Version: D2 Platform: All OS/Version: All Status: NEW

[Issue 8751] Problem with pure inference of inner delegate

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8751 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull

[Issue 8749] Wrong mangling of in parameters

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8749 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-10-04 07:36:17 PDT --- This is difficult issue. Because, with current dmd, scope parameter does affects only for delegate types. For other types, it has no meaning. Furthermore, the

[Issue 8755] New: Change the order of reduce arguments

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8755 Summary: Change the order of reduce arguments Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2

[Issue 8729] parse!bool does not work correctly

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8729 --- Comment #6 from github-bugzi...@puremagic.com 2012-10-04 09:33:06 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8757] New: Require parenthesization of ternary operator when compounded

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8757 Summary: Require parenthesization of ternary operator when compounded Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

[Issue 7719] enum forward reference error when enum is in braces

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7719 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-10-04 08:25:05 PDT --- I've found some lead: in enum.c: void EnumDeclaration::semantic0(Scope *sc) { /* This function is a hack to get around a significant problem.

[Issue 8758] New: A problem with zip.map.reduce at compile time

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8758 Summary: A problem with zip.map.reduce at compile time Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity:

[Issue 4624] std.stdio.File and std.typecons.Unique not GC-heap safe

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4624 --- Comment #2 from github-bugzi...@puremagic.com 2012-10-04 09:51:28 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8756] New: Add link to location of curl static library

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8756 Summary: Add link to location of curl static library Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 8755] Change the order of reduce arguments

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8755 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 8219] File.writeln is slow

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8219 --- Comment #2 from github-bugzi...@puremagic.com 2012-10-04 09:51:18 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 7659] std.stdio.File.close() erases file.name

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7659 --- Comment #6 from github-bugzi...@puremagic.com 2012-10-04 09:51:22 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8755] Change the order of reduce arguments

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8755 --- Comment #2 from adamsib...@hotmail.com 2012-10-04 10:03:04 PDT --- This is not a good idea. Invisible defaults are magic, and magic is bad. Why is it any different to sort being a b by default? Should we require that sort is always

[Issue 7603] Default initializer is allowed on ref/out params

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7603 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-10-04 10:34:29 PDT --- (In reply to comment #0) void test1(ref bool val = true) { } void test2(out bool val = true) { } Actually I'm only half-right. Phobos uses this

[Issue 8219] File.writeln is slow

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8219 --- Comment #3 from bearophile_h...@eml.cc 2012-10-04 10:54:38 PDT --- Now the runtime for the write1 D benchmark is 1.12 seconds, it's a significant improvement. When N = 10_000_000 the D version takes about 5.61 seconds, while the Java

[Issue 8219] File.writeln is slow

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8219 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added CC|

[Issue 4624] std.stdio.File and std.typecons.Unique not GC-heap safe

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4624 --- Comment #3 from Michel Fortin michel.for...@michelf.com 2012-10-04 14:13:23 EDT --- (In reply to comment #2) Commit pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8749] Wrong mangling of in parameters

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8749 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

[Issue 8729] parse!bool does not work correctly

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8729 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 8709] toLower on alias this

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8709 --- Comment #2 from github-bugzi...@puremagic.com 2012-10-04 11:55:10 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8737] Associative Array (AA) KeyType is not Unqual-able

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8737 --- Comment #2 from github-bugzi...@puremagic.com 2012-10-04 11:56:29 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 7603] Default initializer for ref/out must be an lvalue

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7603 --- Comment #3 from bearophile_h...@eml.cc 2012-10-04 12:27:15 PDT --- See also Issue 5850 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 8755] Change the order of reduce arguments

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8755 --- Comment #3 from bearophile_h...@eml.cc 2012-10-04 12:26:41 PDT --- (In reply to comment #2) Why is it any different to sort being a b by default? Should we require that sort is always sort!a b? It's different because it's widely

[Issue 7692] std.conv.parse should do lookahead for 0x in strings with radix 16

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7692 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8709] toLower on alias this

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8709 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com ---

[Issue 8705] std.conv.to bug, from documentation

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8705 --- Comment #1 from monarchdo...@gmail.com 2012-10-04 12:51:46 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 6707] Error message for mismatch of const/non-const property functions needs to improve

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6707 --- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-10-04 12:56:30 PDT --- Better test case: struct Foo { @property bool value() { return true; } void test() const { auto x = value; // not callable using

[Issue 8709] toLower on alias this

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8709 --- Comment #4 from github-bugzi...@puremagic.com 2012-10-04 13:15:44 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 6533] Compiler should catch duplicate overrides

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6533 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6429] Nested function error in reduce

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6429 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 6426] ICE(toir.c) with function-nested alias

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6426 --- Comment #4 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-10-04 14:20:10 PDT --- (In reply to comment #3) DMD 2.069, OS X 10.6.8 Reduced test case: Your test case works, but my OP sample doesn't ICE anymore, instead it errors:

[Issue 8759] New: autogenerated opEquals does no handle well Variant

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8759 Summary: autogenerated opEquals does no handle well Variant Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 8219] File.writeln is slow

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8219 --- Comment #5 from Andrei Alexandrescu and...@metalanguage.com 2012-10-04 14:44:55 PDT --- bearophile, I committed https://github.com/D-Programming-Language/phobos/commit/28e1c98d69a0258992068f4410bdd62c46f5474a could you please compare again

[Issue 8760] New: for a struct A, new A should work if A a; does

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8760 Summary: for a struct A, new A should work if A a; does Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 8761] New: variadic template with nested function using tuple fails

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8761 Summary: variadic template with nested function using tuple fails Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal

[Issue 4419] __gshared static in class has no effect

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4419 Fawzi Mohamed fa...@gmx.ch changed: What|Removed |Added CC||fa...@gmx.ch --- Comment

[Issue 8219] File.writeln is slow

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8219 --- Comment #6 from bearophile_h...@eml.cc 2012-10-04 15:50:29 PDT --- (In reply to comment #5) could you please compare again against everything? I have re-compiled druntime and Phobos (but not dmd, because in the meantime it has not

[Issue 4734] immutable return type specifier without parantheses confuses the compiler

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4734 --- Comment #6 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-10-04 16:15:50 PDT --- (In reply to comment #5) In any case, at minimum, the error message needs to be improved. How about we implement these error messages like this:

[Issue 8730] writeln stops on a nul character, even if passed a D string

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8730 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|

[Issue 8691] Stack overflow with recursive struct

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8691 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|

[Issue 8691] Stack overflow with recursive struct

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8691 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-10-04 17:53:57 PDT --- (In reply to comment #1) I can fix this but I need a little help with the error implementation. After adding a check I end up with: Ok I think I've

[Issue 8683] bad type resolution for template property functions

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8683 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|

[Issue 8447] Self importing is allowed?

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8447 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|

[Issue 7603] Default initializer for ref/out must be an lvalue

2012-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7603 Maxim Fomin ma...@maxim-fomin.ru changed: What|Removed |Added CC||ma...@maxim-fomin.ru