[Issue 8383] 64-bit ABI: unions not the same size as in C in some situations

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

[Issue 9034] errors of conversions in format.d

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9034 --- Comment #2 from js.m...@gmail.com 2012-11-27 03:25:25 PST --- (In reply to comment #1) A minimal test case to go with those errors would be helpful. Use a rather bare bones d example and trying to compile for x64 in windows by adding the

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #24 from Manu turkey...@gmail.com 2012-11-27 03:57:58 PST --- (In reply to comment #22) I'm not sold on the term isManifestConstant, I'm sure no non-compiler developer would have ever heard that term before. I've never seen it

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #25 from Manu turkey...@gmail.com 2012-11-27 04:06:02 PST --- (In reply to comment #24) This highlights another conflict in terminology, currently a property is NOT recognised as a function (at least in my crappy tests). I really

[Issue 9082] New: join should accept types which are not ranges as the separator

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9082 Summary: join should accept types which are not ranges as the separator Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #26 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-11-27 04:14:28 PST --- (In reply to comment #24) What the compiler calls stuff internally has no bearing on what users of the language will call things. It's not an

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #27 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-11-27 04:15:48 PST --- (In reply to comment #26) Anyway it's documented behavior, see manifest constants here (it's at the bottom): http://dlang.org/enum.html Actually

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #29 from Manu turkey...@gmail.com 2012-11-27 04:51:33 PST --- (In reply to comment #26) (In reply to comment #24) What the compiler calls stuff internally has no bearing on what users of the language will call things. It's

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #30 from Manu turkey...@gmail.com 2012-11-27 04:53:31 PST --- (In reply to comment #28) (In reply to comment #26) It's a shame we don't have a 'manifest' keyword of some sort, it would help avoid confusion. I guess 'enum' was

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #31 from Manu turkey...@gmail.com 2012-11-27 05:37:31 PST --- (In reply to comment #20) https://gist.github.com/4152297 I am seeing a few error cases: enum j { k = 10 } pragma(msg, isFunction!(j.k)); pragma(msg,

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #32 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-11-27 06:25:56 PST --- (In reply to comment #29) As a side point, what do you call X in: enum E { X = 10 } ? Consider: enum E { X = 10 } enum Y = 10; E.X and Y are

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #33 from Manu turkey...@gmail.com 2012-11-27 06:43:36 PST --- (In reply to comment #32) (In reply to comment #29) As a side point, what do you call X in: enum E { X = 10 } ? Consider: enum E { X = 10 } enum Y = 10;

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #34 from Manu turkey...@gmail.com 2012-11-27 06:45:04 PST --- @Kenji: I'm getting an error when using your new isFunction, here's the case: struct S { static string func(alias Class)() { foreach(m;

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #35 from Manu turkey...@gmail.com 2012-11-27 06:54:34 PST --- I've just this afternoon encountered another one that I can't work out a nice way to discover: struct S { static int x; } bool b = isStatic!(S.x); // - I can't think

[Issue 9083] New: mixin expression on template argument doesn't work

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9083 Summary: mixin expression on template argument doesn't work Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added CC|

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #37 from Kenji Hara k.hara...@gmail.com 2012-11-27 07:19:03 PST --- (In reply to comment #31) (In reply to comment #20) https://gist.github.com/4152297 I am seeing a few error cases: enum j { k = 10 } pragma(msg,

[Issue 9083] mixin expression on template argument doesn't work

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9083 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #38 from Jacob Carlborg d...@me.com 2012-11-27 07:35:19 PST --- (In reply to comment #36) Trying to take the address should do the trick. is(typeof(S.x)) that is. That won't work for methods, but that might not be the use case.

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #39 from Manu turkey...@gmail.com 2012-11-27 07:52:20 PST --- (In reply to comment #36) Trying to take the address should do the trick. is(typeof(S.x)) that is. And if I have: S s; bool b = isStatic!(s.x); That solution

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #40 from Manu turkey...@gmail.com 2012-11-27 07:59:18 PST --- (In reply to comment #38) That won't work for methods, but that might not be the use case. Yeah, if it were in std.traits, I would expect it to work on methods too.

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 --- Comment #41 from Manu turkey...@gmail.com 2012-11-27 09:26:36 PST --- (In reply to comment #37) This is a compiler bug, not an issue of isFunction template. I filed new bug 9083. I found another one, probably a compiler bug too, but I'll

[Issue 8383] 64-bit ABI: unions not the same size as in C in some situations

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8383 --- Comment #2 from David Nadlinger c...@klickverbot.at 2012-11-27 09:30:06 PST --- Hm, strange, I was sure I could repro this using both DMD and LDC at some point (and yes, building with -m64). In any case, thanks for taking the time to look

[Issue 9062] AddrExp should distinguish the existence of property resolution.

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9062 David Nadlinger c...@klickverbot.at changed: What|Removed |Added CC|

[Issue 9084] New: Structs assignment and associative arrays

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9084 Summary: Structs assignment and associative arrays Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 9085] New: allow for iteration of const(V[K]) without casts

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9085 Summary: allow for iteration of const(V[K]) without casts Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 9079] 'delete this' no longer compiles

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

[Issue 9082] Add interleave function

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9082 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Summary|join should accept types|Add

[Issue 8802] Problem with enums of void*

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8802 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-11-27 16:26:32 PST --- https://github.com/D-Programming-Language/dmd/pull/1330 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 9079] 'delete this' no longer compiles

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9079 --- Comment #2 from siegelords_ab...@yahoo.com 2012-11-27 16:27:03 PST --- I am unhappy how this change breaks existing code without warning. The progression suggested by Walter should have been followed:

[Issue 8802] Problem with enums of void*

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8802 --- Comment #3 from bearophile_h...@eml.cc 2012-11-27 16:52:25 PST --- (In reply to comment #1) I'm not sure if this is filed yet. I think that's already in Bugzilla (not filed by me). -- Configure issuemail:

[Issue 4596] [tdpl] Rebinding *this* in class method compiles

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4596 --- Comment #6 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-11-27 17:15:02 PST --- Note: http://d.puremagic.com/issues/show_bug.cgi?id=9079#c2 And Walter's comment: http://d.puremagic.com/issues/show_bug.cgi?id=780#c3 I'm not sure

[Issue 4596] [tdpl] Rebinding *this* in class method compiles

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4596 --- Comment #7 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-11-27 17:16:24 PST --- (In reply to comment #6) Unfortunately this is what happens when development procedures are written in comments instead of a more visible place..

[Issue 9086] New: std.typecons.appendIfNotNull() or a better idea

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9086 Summary: std.typecons.appendIfNotNull() or a better idea Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2

[Issue 9087] New: Value modified in foreach warning

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9087 Summary: Value modified in foreach warning Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component:

[Issue 9088] New: static static

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9088 Summary: static static Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD

[Issue 9089] New: Very restrictive Tuple constructor

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9089 Summary: Very restrictive Tuple constructor Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: enhancement

[Issue 9087] Value modified in foreach warning

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9087 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-11-27 19:31:53 PST --- (In reply to comment #0) Currently (DMD 2.061alpha) this code generates a warning: // program#1 void main() { foreach (i; 0 .. 10) i++; }

[Issue 9087] Value modified in foreach warning

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9087 --- Comment #2 from bearophile_h...@eml.cc 2012-11-27 19:49:45 PST --- (In reply to comment #1) This means that the warning is not for the purpose you hope. I see, thank you for the answer Hara. But I think the warning I am asking here is

[Issue 9087] Value modified in foreach warning

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9087 --- Comment #3 from Kenji Hara k.hara...@gmail.com 2012-11-27 20:23:02 PST --- (In reply to comment #2) But I think the warning I am asking here is one of the better solutions to avoid those bugs. Yes, in many case those *bugs* will be

[Issue 5168] String enums don't work with -g compiler switch

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5168 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added Keywords||patch

[Issue 8802] Problem with enums of void*

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8802 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added CC||r.sagita...@gmx.de

[Issue 9065] Please consider adding these std.traits

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9065 Rob T al...@ucora.com changed: What|Removed |Added CC||al...@ucora.com --- Comment

[Issue 9090] New: auto ref doesn't work with arrays

2012-11-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9090 Summary: auto ref doesn't work with arrays Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD