http://d.puremagic.com/issues/show_bug.cgi?id=2773
--- Comment #7 from Don clugd...@yahoo.com.au 2009-10-05 03:12:06 PDT ---
Even simpler test case, this one fails on both D1.033 and 1.048.
int[4]* get(){ return null; }
void main()
{
int[4]* p = get();
(*p)[] = 0;
(*p)[] = 0;
}
--
http://d.puremagic.com/issues/show_bug.cgi?id=3356
--- Comment #4 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05
04:19:45 PDT ---
It's hard to check actual immutability of reference type without formal
immutability. This is the very reason why formal immutability exists.
--
http://d.puremagic.com/issues/show_bug.cgi?id=3356
--- Comment #5 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05
04:28:04 PDT ---
Well, I must agree, your scheme works if programmer bothered to mark shared
data properly.
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=3356
--- Comment #6 from Don clugd...@yahoo.com.au 2009-10-05 04:57:26 PDT ---
(In reply to comment #5)
Well, I must agree, your scheme works if programmer bothered to mark shared
data properly.
It's still guaranteed that pure functions cannot
http://d.puremagic.com/issues/show_bug.cgi?id=3364
Summary: module with unittest forces entire import chain
Product: D
Version: 2.032
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=3364
Sobirari Muhomori dfj1es...@sneakemail.com changed:
What|Removed |Added
Keywords|
http://d.puremagic.com/issues/show_bug.cgi?id=3356
--- Comment #7 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05
06:19:38 PDT ---
For me this compiles:
__gshared char[] str;
char fun(in char[] s) pure
{
return s[0];
}
int main()
{
char a=fun(str);
return 0;
}
http://d.puremagic.com/issues/show_bug.cgi?id=3356
--- Comment #8 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05
06:22:45 PDT ---
BTW, in the latest DMD, toLower(), toUpper() now take const(char)[]
parameters,
instead of immutable. Under your scheme, they could not be marked as
http://d.puremagic.com/issues/show_bug.cgi?id=3356
--- Comment #9 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05
06:41:16 PDT ---
Note that you can just look at the parameter list and distinguish levels of
purity: if there are any non-immutable reference parameters, it's not
http://d.puremagic.com/issues/show_bug.cgi?id=3356
--- Comment #10 from Don clugd...@yahoo.com.au 2009-10-05 07:11:21 PDT ---
(In reply to comment #7)
For me this compiles:
__gshared char[] str;
char fun(in char[] s) pure
{
return s[0];
}
int main()
{
char a=fun(str);
http://d.puremagic.com/issues/show_bug.cgi?id=3365
Summary: Safe casts: type modifiers
Product: D
Version: future
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
http://d.puremagic.com/issues/show_bug.cgi?id=3097
--- Comment #2 from The Anh Tran trthea...@yahoo.com 2009-10-05 07:53:12 PDT
---
I've re-tested with dmd v2.033: the bug disappeared.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving
http://d.puremagic.com/issues/show_bug.cgi?id=3356
--- Comment #11 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05
07:54:07 PDT ---
Ouch. That definitely shouldn't compile. Obviously 'pure' isn't doing any
parameter checking at all. The parameter isn't even const!!
It's const. I
http://d.puremagic.com/issues/show_bug.cgi?id=3334
--- Comment #3 from Lutger lutger.blijdest...@gmail.com 2009-10-05 10:32:14
PDT ---
(In reply to comment #2)
(In reply to comment #0)
I didn't know how property is supposed to be demangled, so that one is just
ignored.
Congratulations,
http://d.puremagic.com/issues/show_bug.cgi?id=3347
--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2009-10-05
15:05:51 PDT ---
Yeah, I think it would probably be a mistake for writeln to throw.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
---
http://d.puremagic.com/issues/show_bug.cgi?id=3352
Andrei Alexandrescu and...@metalanguage.com changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=3367
Summary: Regression: assignment at declaration no longer
supports opAssign or ctor overloads
Product: D
Version: 2.033
Platform: x86
OS/Version: Windows
Status:
http://d.puremagic.com/issues/show_bug.cgi?id=2935
Rob Jacques sandf...@jhu.edu changed:
What|Removed |Added
CC||sandf...@jhu.edu
---
http://d.puremagic.com/issues/show_bug.cgi?id=2437
Rob Jacques sandf...@jhu.edu changed:
What|Removed |Added
CC||sandf...@jhu.edu
---
http://d.puremagic.com/issues/show_bug.cgi?id=2992
HOSOKAWA Kenchi hs...@inter7.jp changed:
What|Removed |Added
CC||hs...@inter7.jp
---
20 matches
Mail list logo