[Issue 6364] New: Static struct's destructor called on exit of function

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6364 Summary: Static struct's destructor called on exit of function Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: major Priority: P2

[Issue 6365] New: AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 Summary: AutoTupleDeclaration Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2011-07-23 05:08:51 PDT --- Also we can allow a static array on initializer like follows: auto (x, y) = [10, 20]; assert(x == 10); assert(y == 20); But, it has a bit problem. auto (x, y) =

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-07-23 05:17:57 PDT --- (In reply to comment #2) (In reply to comment #0) auto (n1, n2) = 100; // non tuple initializer assert(n1 == 100); assert(n2 == 100); This *must* be a

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #4 from bearophile_h...@eml.cc 2011-07-23 05:18:55 PDT --- Optionally there is the foreach use case too. A possible syntax: auto array = [tuple(1,foo), tuple(2,bar)]; foreach (tuple(id, name); array) {} -- Configure issuemail:

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #5 from bearophile_h...@eml.cc 2011-07-23 05:23:06 PDT --- (In reply to comment #3) This is keeping consistent feature. Current D allow compilation of following code: TypeTuple!(int, int) f = 10; assert(f[0] == 10);

[Issue 6366] New: alias this doesn't work with foreach range.front

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6366 Summary: alias this doesn't work with foreach range.front Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #6 from Kenji Hara k.hara...@gmail.com 2011-07-23 05:27:14 PDT --- (In reply to comment #4) Optionally there is the foreach use case too. A possible syntax: auto array = [tuple(1,foo), tuple(2,bar)]; foreach (tuple(id, name);

[Issue 6367] New: Multi-assignment for typetuples is bad

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6367 Summary: Multi-assignment for typetuples is bad Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Keywords: accepts-invalid Severity:

[Issue 6368] New: Too many error messages for a missing );

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6368 Summary: Too many error messages for a missing ); Product: D Version: unspecified Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity:

[Issue 6366] alias this doesn't work with foreach range.front

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6366 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 6369] New: alias this doesn't work with initializer

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6369 Summary: alias this doesn't work with initializer Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #8 from Andrei Alexandrescu and...@metalanguage.com 2011-07-23 07:33:33 PDT --- Regarding mismatch in the number of elements, we may actually do good to disable TypeTuple!(int, int) f = 10; assert(f[0] == 10); assert(f[1] == 10);

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added CC|

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #9 from bearophile_h...@eml.cc 2011-07-23 07:48:46 PDT --- (In reply to comment #8) Regarding mismatch in the number of elements, we may actually do good to disable TypeTuple!(int, int) f = 10; assert(f[0] == 10); assert(f[1]

[Issue 6370] New: [RDMD] Cannot compile with etc.c.sqlite3

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6370 Summary: [RDMD] Cannot compile with etc.c.sqlite3 Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #10 from Kenji Hara k.hara...@gmail.com 2011-07-23 08:28:08 PDT --- (In reply to comment #7) One simple syntactic matter is that we can't extend the existing syntax to work with specified types. That means the user must use

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #11 from Kenji Hara k.hara...@gmail.com 2011-07-23 08:33:10 PDT --- Oops, I forgot to paste experimental patch link. https://github.com/9rnsr/dmd/compare/expandTuples...declarationTuple -- Configure issuemail:

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #12 from bearophile_h...@eml.cc 2011-07-23 09:03:24 PDT --- (In reply to comment #10) (In reply to comment #7) (auto i, j) = tuple(1.2, a); Then the syntax can be later extended to: (double i, string j) = tuple(1.2, a);

[Issue 6361] To avoid a newline in multi-line strings

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6361 --- Comment #1 from bearophile_h...@eml.cc 2011-07-23 09:12:53 PDT --- Code by Andrej Mitrovic: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.Darticle_id=141106 It shows better why this very small change in D language

[Issue 6370] [RDMD] Cannot compile with etc.c.sqlite3

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6370 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added CC|

[Issue 6370] [RDMD] Cannot compile with etc.c.sqlite3

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6370 --- Comment #2 from Michal Minich michal.min...@gmail.com 2011-07-23 10:50:07 PDT --- dmd handles it well, rdmd ends with similar error module etc.c.sqlite from file dmd2/linux/bin64/../../src/phobos/etc/c/sqlite3.d conflicts with another

[Issue 6370] [RDMD] Cannot compile with etc.c.sqlite3

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6370 --- Comment #3 from Dmitry Olshansky dmitry.o...@gmail.com 2011-07-23 10:56:32 PDT --- Sorry, I've botched it, that supposed to be etc.c.sqlite3, just like you import it -- Configure issuemail:

[Issue 6370] [RDMD] Cannot compile with etc.c.sqlite3

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6370 --- Comment #4 from Michal Minich michal.min...@gmail.com 2011-07-23 11:08:19 PDT --- No prob, I should pay more attention. (is the '3' really needed, I keep forgetting it) Now it compiles ok, but fails to link with rdmd, I guess this is

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #13 from bearophile_h...@eml.cc 2011-07-23 12:04:19 PDT --- Tuple slicing and other situations create tuples with 1 items or 0 items: auto t = tuple(1.5, foo); auto t1 = t[0 .. 1]; auto t2 = t[0 .. 0]; In python they are written:

[Issue 6365] AutoTupleDeclaration

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6365 --- Comment #14 from bearophile_h...@eml.cc 2011-07-23 12:14:23 PDT --- See also the idea of switching on tuples, in issue 596 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail

[Issue 6371] New: Small improvements to aid auto-building DMD from git

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6371 Summary: Small improvements to aid auto-building DMD from git Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: enhancement

[Issue 6371] Small improvements to aid auto-building DMD from git

2011-07-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6371 --- Comment #2 from Nick Sabalausky cbkbbej...@mailinator.com 2011-07-23 17:10:03 PDT --- By pre-built libs I don't mean phobos or druntime. Just the other ones for which the source isn't in git. -- Configure issuemail: