[Issue 2954] [tdpl] Appalling bug in associative arrays (D2 only)

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2954 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||patch CC|

[Issue 4414] ICE(cgcs.c) Taking item of static array returned by function

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4414 Per �ngstr�m d-bugzi...@autark.se changed: What|Removed |Added CC||d-bugzi...@autark.se

[Issue 2828] Typedef'ed template struct incorrectly recognized as an inner struct

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2828 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5221] New: entity.c: Merge Walter's list with Thomas'

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5221 Summary: entity.c: Merge Walter's list with Thomas' Product: D Version: D1 D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 5221] entity.c: Merge Walter's list with Thomas'

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5221 --- Comment #1 from Iain Buclaw ibuc...@ubuntu.com 2010-11-16 05:45:59 PST --- Random examples of tests that fail on DMD: static assert('\check;'==10003); static assert('\lsim;'==8818); static assert('\numero;'==8470); static

[Issue 5221] entity.c: Merge Walter's list with Thomas'

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5221 --- Comment #2 from Iain Buclaw ibuc...@ubuntu.com 2010-11-16 06:07:53 PST --- (From update of attachment 815) diff -ur src.orig/entity.c src/entity.c --- src.orig/entity.c2010-03-31 01:26:18.0 +0100 +++ src/entity.c2010-11-16

[Issue 5222] New: label prepending block in 'ThenStatement' breaks creating new scope

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5222 Summary: label prepending block in 'ThenStatement' breaks creating new scope Product: D Version: D1 D2 Platform: x86 OS/Version: Windows Status: NEW

[Issue 5223] New: [qtd] Cannot use default value with function parameter of struct type

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5223 Summary: [qtd] Cannot use default value with function parameter of struct type Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW

[Issue 5223] [qtd] Cannot use default value with function parameter of struct type

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5223 --- Comment #1 from Max Samukha samu...@voliacable.com 2010-11-16 09:48:10 PST --- Even simpler test-case: struct S { this(int x) { } void foo(S s = S(42)) { } } void main() { S s; s.foo(); // error } Error:

[Issue 5224] New: std.algorithm.remove!(SwapStrategy.unstable) doesn't work

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5224 Summary: std.algorithm.remove!(SwapStrategy.unstable) doesn't work Product: D Version: D2 Platform: x86_64 OS/Version: Windows Status: NEW Severity:

[Issue 2809] Wrong constant folding for unsigned shift

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2809 --- Comment #5 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 11:53:02 PST --- short a(short b) { return bcast(short)1; } Shouldn't number literals work as smallest possible type and promoted as needed? Like here: --- byte a=1; ---

[Issue 2809] Wrong constant folding for unsigned shift

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2809 --- Comment #6 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 11:59:34 PST --- Number literals are polysemous, right? So binary ops should work like this: opBinary(l,r) { if(is(typeof(r)==polysemous)) {

[Issue 5224] std.algorithm.remove!(SwapStrategy.unstable) doesn't work

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5224 --- Comment #1 from Aleksandar Ruzicic ruzicic.aleksan...@gmail.com 2010-11-16 21:02:22 CET --- tested now also under DMD 2.050, same results. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 4638] Regression: new writeln does not recognize wstring toString

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4638 Shin Fujishiro rsi...@gmail.com changed: What|Removed |Added Status|NEW |ASSIGNED

[Issue 5212] Safer typesafe variadics

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5212 --- Comment #6 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 12:11:46 PST --- Variadic arguments are arguments, and arguments are on the stack. T[] is not a dynamic array, it's a slice. Messing python idioms into D, while those

[Issue 5201] std.string.indexOf and std.algorithm.indexOf return different things for narrow strings

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5201 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

[Issue 3888] Version of find() which returns the range _before_ what was found

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3888 Shin Fujishiro rsi...@gmail.com changed: What|Removed |Added CC||rsi...@gmail.com ---

[Issue 5212] Safer typesafe variadics

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5212 --- Comment #7 from bearophile_h...@eml.cc 2010-11-16 12:42:05 PST --- One of the many posts of the relative thread: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.Darticle_id=122157 (In reply to comment #6)

[Issue 5133] dmd fails to build rdmd (problem with startsWith)

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5133 Shin Fujishiro rsi...@gmail.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 5154] Class Range does not work in writeln

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5154 --- Comment #1 from Shin Fujishiro rsi...@gmail.com 2010-11-16 13:03:13 PST --- Fixed: http://www.dsource.org/projects/phobos/changeset/2170 Also fixed for interfaces and pointers to struct ranges. -- Configure issuemail:

[Issue 5154] Class Range does not work in writeln

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5154 --- Comment #2 from Shin Fujishiro rsi...@gmail.com 2010-11-16 13:04:06 PST --- Fixed: http://www.dsource.org/projects/phobos/changeset/2170 Also fixed for interfaces and pointers to struct ranges. -- Configure issuemail:

[Issue 5154] Class Range does not work in writeln

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5154 Shin Fujishiro rsi...@gmail.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3147] Incorrect value range propagation for addition

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3147 --- Comment #2 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 13:40:52 PST --- Some asserts for modulus and shifts --- byte b; short s; int i; long l; static assert(is(typeof(s%b)==byte)); static assert(is(typeof(i%s)==short));

[Issue 3147] Incorrect value range propagation for addition

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3147 --- Comment #3 from Andrei Alexandrescu and...@metalanguage.com 2010-11-16 13:54:16 PST --- The point is not to ascribe the smallest static type to the result. That would break compatibility with C in many ways. All that happens is the

[Issue 3147] Incorrect value range propagation for addition

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3147 --- Comment #4 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 14:01:34 PST --- --- l = cast(int)(s%b); l = cast(short)(s%b); --- What's the difference? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email

[Issue 3147] Incorrect value range propagation for addition

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3147 --- Comment #5 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 14:22:01 PST --- In any case --- static if(__traits(compiles, s=b+b)) { static assert(__traits(compiles, b=s%b)); static assert(__traits(compiles, s=sb));

[Issue 5093] improve error for importing std.c.windows.windows

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5093 simon s.d.hamm...@googlemail.com changed: What|Removed |Added Attachment #812 is|0 |1

[Issue 5217] Permit static+abstract

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5217 --- Comment #2 from Austin Hastings ah0801...@yahoo.com 2010-11-16 16:00:37 PST --- What I'm asking for is abstract static. That is, a syntax for imposing a requirement that a class (or struct) provide a static member function before it can be

[Issue 5201] std.string.indexOf and std.algorithm.indexOf return different things for narrow strings

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5201 --- Comment #2 from Jonathan M Davis jmdavisp...@gmx.com 2010-11-16 16:19:18 PST --- Glancing at std.string.indexOf() again, it has different parameters than std.algorithm - dealing with case sensitivity and whatnot. It also takes a dchar

[Issue 5226] New: indexOf() which takes a pred but no needle

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5226 Summary: indexOf() which takes a pred but no needle Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: enhancement Priority:

[Issue 5216] /+ parsed incorrectly in comments

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5216 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5217] Permit static+abstract

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5217 --- Comment #3 from Jonathan M Davis jmdavisp...@gmx.com 2010-11-16 17:01:57 PST --- Do template constraints not work for you in this case? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 2095] covariance w/o typechecks = bugs

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2095 --- Comment #13 from bearophile_h...@eml.cc 2010-11-16 17:04:34 PST --- Something about this topic: http://blogs.msdn.com/b/ericlippert/archive/2007/10/17/covariance-and-contravariance-in-c-part-two-array-covariance.aspx This is is an

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 Stewart Gordon s...@iname.com changed: What|Removed |Added CC||s...@iname.com ---

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #18 from Stewart Gordon s...@iname.com 2010-11-16 17:15:03 PST --- (In reply to comment #17) For example, if a is a string[], then a ~ this that and a ~ this ~ that evaluate to different strings. Different string arrays even.

[Issue 5216] /+ parsed incorrectly in comments

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5216 --- Comment #2 from Jonathan M Davis jmdavisp...@gmx.com 2010-11-16 17:24:07 PST --- I could have sworn that the online docs said that one of the main reasons for /+ +/ was to comment out code, but regardless, it's not like you usually run

[Issue 5227] New: X ^^ FP at compile-time

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5227 Summary: X ^^ FP at compile-time Product: D Version: D2 Platform: All OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: enhancement

[Issue 5217] Permit static+abstract

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5217 --- Comment #4 from Austin Hastings ah0801...@yahoo.com 2010-11-16 18:53:00 PST --- Template constraints do not work. The problem is not The input type must behave in such-and-such manner, but rather Here is a template for most, but not all,

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 nfx...@gmail.com changed: What|Removed |Added CC||nfx...@gmail.com --- Comment #19

[Issue 5216] /+ parsed incorrectly in comments

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5216 nfx...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #20 from bearophile_h...@eml.cc 2010-11-16 19:38:56 PST --- (In reply to comment #19) (In reply to comment #17) Not that there's any real use case for this that anyway. And those rare use cases I use automatic joining all

[Issue 5217] Permit static+abstract

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5217 --- Comment #5 from Jonathan M Davis jmdavisp...@gmx.com 2010-11-16 19:42:08 PST --- Hmm. I think that I get what you're getting at, though it is a bit odd. Certainly, requiring static functions is something different. I've never seen a

[Issue 5194] ddoc does not show modifiers on constructors such as pure or nothrow

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5194 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5216] /+ parsed incorrectly in comments

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5216 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 5199] null implicitly converts to any other type on array assignment

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5199 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3889] Forbid null as representation of empty dynamic array

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3889 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 5228] Add GetOptException (or similar) to std.getopt

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5228 --- Comment #1 from Jonathan M Davis jmdavisp...@gmx.com 2010-11-16 20:55:47 PST --- I feel like a moderate idiot. I didn't realize that you could get an exception's message by accessing its public member variable msg. So, the situation is not

[Issue 3889] Forbid null as representation of empty dynamic array

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3889 --- Comment #3 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 21:30:44 PST --- foo(null); foo([]); // OK, int[] foo(cast(int[])null); // OK, int[] foo(cast(int[])[]); // Partially OK, inside

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|

[Issue 5199] null implicitly converts to any other type on array assignment

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5199 --- Comment #4 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 21:34:06 PST --- I'd rather say it's a dup of bug 3395. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this

[Issue 5199] null implicitly converts to any other type on array assignment

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5199 --- Comment #5 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 21:39:09 PST --- Disambiguation will make it hard to copy empty slices... well... such operation is not needed too much either. --- foo[]=(cast(Foo[])null)[]; //copy

[Issue 3147] Incorrect value range propagation for addition

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3147 --- Comment #6 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-16 22:03:08 PST --- There should be ints in shift asserts --- static if(__traits(compiles, s=b+b)) { static assert(__traits(compiles, b=i%b)); static