http://d.puremagic.com/issues/show_bug.cgi?id=6094
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Severity|regression |enhancement
--- Comment #9
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
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=2391
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
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
http://d.puremagic.com/issues/show_bug.cgi?id=6094
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Severity|regression |enhancement
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=5889
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4258
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=2156
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Keywords||patch
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=6226
kenn...@gmail.com changed:
What|Removed |Added
CC||kenn...@gmail.com
--- Comment #1
http://d.puremagic.com/issues/show_bug.cgi?id=6229
kenn...@gmail.com changed:
What|Removed |Added
CC||kenn...@gmail.com
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,
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:
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) =
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 {};
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
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:
http://d.puremagic.com/issues/show_bug.cgi?id=546
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Keywords||patch
CC|
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
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
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 .. $];
}
http://d.puremagic.com/issues/show_bug.cgi?id=5062
kenn...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=1471
kenn...@gmail.com changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
--- Comment
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:
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]
http://d.puremagic.com/issues/show_bug.cgi?id=2521
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|REOPENED|RESOLVED
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=6232
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
CC|
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
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
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
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=1553
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Keywords||accepts-invalid, patch
http://d.puremagic.com/issues/show_bug.cgi?id=6229
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
37 matches
Mail list logo