[Issue 6094] doesn't shortcut properly with CTFE

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6094 Don clugd...@yahoo.com.au changed: What|Removed |Added Severity|regression |enhancement --- Comment #9

[Issue 5889] Struct literal/construction should be rvalue

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5889 --- Comment #7 from Don clugd...@yahoo.com.au 2011-06-29 23:28:22 PDT --- (In reply to comment #6) (In reply to comment #5) 'Literal is rvalue' is very important semantics for strict typed languages. A literal is not referenced from any

[Issue 6221] Should be possible to pass struct function returns by 'const ref'.

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6221 --- Comment #2 from Don clugd...@yahoo.com.au 2011-06-29 23:54:17 PDT --- (In reply to comment #1) I think this bug is invalid. A value-type return is an rvalue, and Andrei has made it very clear in his posts and in TDPL that rvalues cannot

[Issue 5889] Struct literal/construction should be rvalue

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5889 --- Comment #8 from Kenji Hara k.hara...@gmail.com 2011-06-30 00:14:51 PDT --- (In reply to comment #7) But that's true of immutable as well. In reality, any struct literal which exists at run time is stored in the executable as if it were

[Issue 2391] Character array literals are not recognized as string literals

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2391 yebblies yebbl...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 2156] A string initialized to [] in a template is not recognized as string

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2156 --- Comment #1 from yebblies yebbl...@gmail.com 2011-06-30 17:34:35 EST --- *** Issue 2391 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 6094] doesn't shortcut properly with CTFE

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6094 Don clugd...@yahoo.com.au changed: What|Removed |Added Severity|regression |enhancement --- Comment

[Issue 5889] Struct literal/construction should be rvalue

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5889 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 4258] auto ref doesn't work in one or more cases

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4258 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 2156] [] and null should be accepted where a compile-time string is required

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2156 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||patch CC|

[Issue 6226] Switch with impossible cases

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6226 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com --- Comment #1

[Issue 6229] %= and /= no longer work on char type

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6229 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com

[Issue 6226] Switch with impossible cases

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6226 --- Comment #2 from bearophile_h...@eml.cc 2011-06-30 03:34:31 PDT --- (In reply to comment #1) V551 happens because in C a 'char' can be signed and people forget that. I doubt if the same argument could apply to D. Mistakes happen in D too,

[Issue 4258] auto ref doesn't work in one or more cases

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4258 --- Comment #4 from Kenji Hara k.hara...@gmail.com 2011-06-30 03:49:02 PDT --- (In reply to comment #3) Thanks for your merging. (In reply to comment #2) Patch create and send pull request:

[Issue 5889] Struct literal/construction should be rvalue

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5889 --- Comment #10 from Kenji Hara k.hara...@gmail.com 2011-06-30 04:37:33 PDT --- OK. Here's another advantage of that. struct S1{ int n; } struct S2{ this(int n){} } struct S3{ int n; void opAssign(S3 rhs){} } void main() { S1(0) =

[Issue 5889] Struct literal/construction should be rvalue

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5889 --- Comment #11 from Kenji Hara k.hara...@gmail.com 2011-06-30 04:47:55 PDT --- Another example. In C++0x (gcc-4.5.1), following code prints 1. It seems to me that the S() makes rvalue instead of lvalue. #include stdio.h struct S {};

[Issue 6221] Should be possible to pass struct function returns by 'const ref'.

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6221 --- Comment #3 from Steven Schveighoffer schvei...@yahoo.com 2011-06-30 07:24:09 PDT --- Like I said, I don't know what the right solution is. Previously I thought auto ref was the solution, but I'm not so sure. I agree operators need to

[Issue 6221] Should be possible to pass struct function returns by 'const ref'.

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6221 --- Comment #4 from kenn...@gmail.com 2011-06-30 07:52:16 PDT --- Shouldn't opCmp be relaxed like opEquals in bug 3659? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because:

[Issue 546] Error message for accessing a deprecated variable is doubled

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=546 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||patch CC|

[Issue 6230] New: Member functions can no longer be weakly pure

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6230 Summary: Member functions can no longer be weakly pure Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: blocker

[Issue 6230] Member functions can no longer be weakly pure

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6230 --- Comment #1 from kenn...@gmail.com 2011-06-30 09:50:12 PDT --- One possible patch: diff --git a/src/expression.c b/src/expression.c index 57cdd61..71f6239 100644 --- a/src/expression.c +++ b/src/expression.c @@ -1366,17 +1366,23 @@ void

[Issue 1471] Linker error on template function. Error 42: Symbol Undefined ...

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1471 --- Comment #2 from kenn...@gmail.com 2011-06-30 10:25:34 PDT --- Reduced test case for 1.068: --- void main(){ const string s = BOOM; int gremlins = 0; string bar = s[gremlins .. $]; }

[Issue 5062] Problem with a string slicing

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5062 kenn...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 1471] Linker error on template function. Error 42: Symbol Undefined ...

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1471 kenn...@gmail.com changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment

[Issue 6231] New: [patch] std.conv.to: Structs with toString and isInputRange match multiple templates.

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6231 Summary: [patch] std.conv.to: Structs with toString and isInputRange match multiple templates. Product: D Version: D2 Platform: Other OS/Version: Windows Status:

[Issue 6231] [patch] std.conv.to/std.format.: Structs with toString and isInputRange match multiple templates.

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6231 Rob Jacques sandf...@jhu.edu changed: What|Removed |Added Summary|[patch] std.conv.to:|[patch]

[Issue 2521] Not possible to return immutable value by ref

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2521 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 4718] Few Phobos modules renames

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4718 --- Comment #6 from bearophile_h...@eml.cc 2011-06-30 15:15:36 PDT --- KennyTM~: But std.cover no longer exists in D2. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail

[Issue 6232] New: And idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 Summary: And idea for std.string.toStringz docs Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2

[Issue 6232] And idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

[Issue 6232] And idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 --- Comment #2 from bearophile_h...@eml.cc 2011-06-30 18:18:46 PDT --- (In reply to comment #1) That's a lot to add to the documentation for something which is completely unnecessary to use or understand the function. Good documentation must

[Issue 6232] An idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 --- Comment #3 from Jonathan M Davis jmdavisp...@gmx.com 2011-06-30 18:28:29 PDT --- Your suggestion doesn't help at all with remembering to use zero-terminated strings when calling C code. For that you have to remember that you need to do

[Issue 6233] New: Compiler lists wrong module in an expression error

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6233 Summary: Compiler lists wrong module in an expression error Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2

[Issue 6232] An idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 --- Comment #4 from bearophile_h...@eml.cc 2011-06-30 18:57:48 PDT --- (In reply to comment #3) Your suggestion doesn't help at all with remembering to use zero-terminated strings when calling C code. Are your suggestion only helps as far

[Issue 6232] An idea for std.string.toStringz docs

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6232 --- Comment #5 from Jonathan M Davis jmdavisp...@gmx.com 2011-06-30 19:30:18 PDT --- 1. It only helps if you're actually keeping zero-terminated strings around, which is likely an atypical use case. Usually, you pass it to the C function and

[Issue 1553] foreach_reverse is allowed for delegates

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1553 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||accepts-invalid, patch

[Issue 6229] %= and /= no longer work on char type

2011-06-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6229 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED